Pass type and comparator type as a number.