Sujit,
I don't see any problem with the reasoning. You are complaining about trying to convert an non-final class to an array. That is not possible in
Java. Your third line gives you the answer:
non-final class to Array -> Newtype must be Object.
You are trying to read it with the last
word being Array instead of Object!
In Java an array is an object therefore we can always do the following:
int[] intArray = new int[25];
Object ob = intArray
or
MyClass c = new MyClass();
Object ob = c;
We can not however, do the following:
int[] intArray = new int[25];
Object[] obArr = intArray;
or
MyClass c = new MyClass();
Object[] obArr = c;
In your case you could have performed the following:
Regards,
Manfred.