dcsimg

How can I cast an Object reference to an array reference?

John Mitchell

Pretty much just like any other cast:

myArrayRef = (MyArrayType[]) objectRef;

For more information, check out Section 5.5 of the Java Language Specification.