private Object convert(final Field field, final Val val) {
        if (field != null && field.getFormat() != null && field.getFormat().getType() != null) {
            final Type type = field.getFormat().getType();
            if (Type.NUMBER.equals(type) || Type.DATE_TIME.equals(type)) {
                return val.toDouble();
            }
        }
        return val.toString();
    }
private Object convert(final Field field, final Val val) {
        if (field != null && field.getFormat() != null && field.getFormat().getType() != null) {
            final Type type = field.getFormat().getType();
            if (Type.NUMBER.equals(type) || Type.DATE_TIME.equals(type)) {
                return val.toDouble();
            }
        }
        return val.toString();
    }
private object convert(final field field, final val val) { if (field != null && field.getformat() != null && field.getformat().gettype() != null) { final type type = field.getformat().gettype(); if (type.number.equals(type) || type.date_time.equals(type)) { return val.todouble(); } } return val.tostring(); }