public static Object getJavaObj(Term t) {
        switch (t.type) {
            case TBool:
                return new Boolean(t.bvalue());
            case TChar:
                return new Character(t.cvalue());
            case TInt:
                return new Integer(t.ivalue());
            case TDouble:
                return new Double(t.dvalue());
            case TString:
                return new String(t.svalue());
            case TObject:
                return t.ovalue();
            case TQuote:
                return getArrayObj(t);
            default:
                throw new VException("err:java:obj",t, "Unable to convert value :" + t.value() + " " + t.type);
        }
    }