Class cast exception in object listings