convert Number and String default values to the correct type defined in the proto file