Helper converter function failing miserably.