code: public T convert(Expression expr) {
      result = null;
      expr.visit(this);
      if (result == null)
        Assert.fail("No result set for expression: " + expr);
  
      T temp = result;
      result = null;
      return temp;
    }
docs: conversion