Add compare for types