toFilter

Converts the current object to a filter.