Make ToMsgPack public