use varType instead of matching on Expr