on method should return ValueInField instead of Constraint so that you can use asFilter() method on it.