I am getting an object as a result of a method call. It is a raster/grid/matrix with rows and columns. But the return type of the method is a object.
On debugging, I can see the 2D array inside. But I am not being able to cast it into anything.
Object vPixels = pixelblock3.getPixelDataByRef(0);
Integer[][] wPixels = (Integer[][]) vPixels;
I get a ClassCastException at the 2nd line:
[[B cannot be cast to [[Ljava.lang.Integer;
How can I fix this problem?