static NumType obj2type(Object cz) {
			NumType o;
			if (cz.equals(Short.class))
				o = NumType.shrt;
			else if (cz.equals(Integer.class))
				o = NumType.integer;
			else if (cz.equals(Long.class))
				o = NumType.lng;
			else if (cz.equals(BigInteger.class))
				o = NumType.bigint;
			else if (cz.equals(Float.class))
				o = NumType.flt;
			else if (cz.equals(Double.class))
				o = NumType.dbl;
			else if (cz.equals(BigDecimal.class) || cz.equals(Number.class))
				o = NumType.bigdec;
			else if (cz.equals(Byte.class))
				o = NumType.byt;
			else
				throw new RuntimeException("unexpected class: " + cz);
			return o;
		}