Make the different value type objects hashable