Check @nogc toString impl
import mir.format: stringBuf; auto str = "-34010447314490204552169750449563978034784726557588085989975288830070948234680"; auto integer = BigInt!4(str); stringBuf buffer; buffer << integer; assert(buffer.data == str, buffer.data);