icon = *(toStringz(text(num)));

icon is a char, num is an integer.
I don't suppose there is an easier way to do this?

It's too late and ma brains is mushy.