1 2 3 4 5 6 7 8 9 10 11 12 13
class A {} interface I {} public class InterfaceArrayCast { public static void main(String[] args) {} void foo(A[] as, I i) { A[] as1 = (A[])i; I i1 = (I)as; } }