Made the compare for type specific