I think we already have a PR to refactor all these conversions so I'm going to leave it to that.  This function doesn't really do anything else.