So this works:
int i; Object a = (Object) i; int[] t; Object b = (Object) t; String[] s; Object[] t = (Object[]) s;
But this does not:
A int[] is an array of primitives but also an Object itself. It is not an array of Objects
int[]
There is no auto-boxing support for arrays. You need to pick the right type of array to start with and not be converting it at runtime.