Checks if the value is a member of the type of the other QueryTree.
Checks if the value is a member of the type of other.