Tried to simplify the cnvrt*() functions.