	 @Test
	 public void testCastArrayToString(){

	   try {
	   when(converter.icg.generateTempIdentifier(any(StringType.class)))
	     .thenReturn(new IdentifierData("tmp", new StringType(0l)));
	   converter.cast(new StringType(0l), new IdentifierData("test",
	     new ArrayType(new LongType(), 0)));
	   fail();
	  } catch (IntermediateCodeGeneratorException e) {
	  }
	 }