Handle boolean and numeric values in an ItemFilter