code: public static Component toComponent(Object obj) throws ExpressionException {
  	if (obj instanceof Component) return (Component) obj;
  	throw new ExpressionException("can't cast class [" + Caster.toClassName(obj) + "] to a class of type Component");
      }
docs: /*
  public static Component toComponentAccess(Component comp, Component defaultValue) { if(comp
  instanceof ComponentAccess) return (ComponentAccess) comp; if(comp instanceof
  ComponentSpecificAccess) return ((ComponentSpecificAccess) comp).getComponentAccess(); return
  defaultValue; }