fixed class cast exception for Object superclass