code: public static boolean isCastableToImage(PageContext pc, Object obj) {
  	try {
  	    Class clazz = ImageUtil.getImageClass();
  	    if (clazz != null) {
  		Method m = clazz.getMethod("isCastableToImage", new Class[] { PageContext.class, Object.class });
  		return (boolean) m.invoke(null, new Object[] { pc, obj });
  	    }
  	}
  	catch (Exception e) {}
  	return false;
      }
docs: /*
  public static Type getImageType() { return Type.getType("Lorg/lucee/extension/image/Image;"); }