void () { doTest("java.lang.ClassCastException: class [Ljava.lang.String; cannot be cast to class java.lang.String", "Find why 'obj' could be java.lang.String[] (not-null)", "class X {static String cast(Object obj) {return (String)obj;}}"); }