Handle type mismatch in all comparison methods