Operator-based type comparison