@classmethod
def from_finite_set(cls, s):
    """Create Integer set object from a finite set."""
    intervals = []
    for el in s:
        if type(el) != int:
            val = int(el)
        else:
            val = el
        intervals.append(val)
    return cls(intervals)
