How can I cast an Object reference to an array reference?
Created May 4, 2012
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.