remove cast from List to ArrayList