Add getValueType method to getValueType