private DataType getBuiltinType(String name) {
        switch (name) {
        case "bool":      return DataType.BOOL;
        case "byte":      return DataType.BYTE;
        case "int":       return DataType.INT;
        case "long":      return DataType.LONG;
        case "string":    return DataType.STRING;
        case "float":     return DataType.FLOAT;
        case "double":    return DataType.DOUBLE;
        case "uri":       return DataType.URI;
        case "predicate": return DataType.PREDICATE;
        case "raw":       return DataType.RAW;
        case "tag":       return DataType.TAG;
        case "float16":   return DataType.FLOAT16;
        default:
            throw new IllegalArgumentException("Unknown builtin type: "+name);
        }
    }
Helper class for converting ParsedType instances to DataType

@author arnej27959
config-model/src/main/java/com/yahoo/schema/parser/ConvertParsedTypes.java