docs: def cast_to_swimlane(self, value):
          """Return datetimes formatted as expected by API and timespans as millisecond epochs"""
          if value is None:
              return value
  
          if self.input_type == self._type_interval:
              return value.in_seconds() * 1000
  
          return self.format_datetime(value)