Raise TypeError when given parameter isn't SortedSet