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
TypeA[] array = (TypeA[]) a.toArray();