class cast exception for Sum