Compared types directly instead of their string representations