You have a trivial error in your code. The fact that each class extends Object makes it difficult to find an error.
Since each class (including arrays) extends Object, conversion from A[]to is possible Object.
int i = new int[], , int[] i.
. Object a = new Object[] - , .