proc castToXid(raw: array[12, uint8]): Xid {.inline, ...raises: [], tags: [],
forbids: [].}
cast a 12 bytes as Xid
Example:
block:
let raw =
[byte 0x4d, 0x88, 0xe1, 0x5b, 0x60, 0xf4, 0x86, 0xe4, 0x28, 0x41, 0x2d, 0xc9]
let xid = castToXid(raw)
xid.debug()