Implemented type comparisons.