def to_filter(self, value):
        """

        :param value: 
        :return: 
        """
        if isinstance(value, collections.Iterable):
            return self.seq_to_filter(value)
        return self.scalar_to_filter(value)