move convert_to_int_or_float to SortedSetCommandsMixin