Hmmm, thanks for the replies, I was worried more about how to implement the conversion functions per se and completely overlooked the aspect of tail recursion. Thanks, -tim