type foo = enum bar = 0x04, ... proc thing(stuff: foo) = var send = newSeq[byte](1) send[0] = (byte)stuff ```