Add a convenience method to tell if two things are equal.