convert_to_natural function

Internal function for converting parameters to natural parameters.