type Foo = enum fBar = 0x40 converter toByte(f: Foo): byte = f.byte let s1: seq[byte] = @[fBar] # doesn't work var s2: seq[byte] s2.add fBar # works