try-catch class cast exception.