// int[] array1 = (int[]) arrayObj;
//
// if(!Arrays.equals(array, array1)){
// throw new RuntimeException();
// }
int index = classes.indexOf(objectA);
if(index == -1){
throw new RuntimeException();
}
ObjectA objectA2 = (ObjectA) classes.get(index);