Possible class cast exception protection.