I'm sure I'm making this more difficult than it needs to be. I'm trying to convert an integer to a dchar. The solution below works but seems like overkill. dstring dstrValue = to!dstring(5); dchar dcharValue = to!dchar(dstrValue); ... this, dchar dcharValue = to!dchar(5); ... writes out '\x005' ..or something close to that.