Call equals() comparing different types