Bad casting. Do you really need ArrayList?