extended builtin function ValType