Add a type-appropriate equality operator