Is there a command in java for conversion of an ArrayList into a object array. I know how to do this copying each object from the arrayList into the object array, but I was
You can use this code
ArrayList a = new ArrayList(); Object[] o = a.toArray();
Then if you want that to get that object back into TypeA just check it with instanceOf method.