Don't use `cast` for distinct types, do a type conversion. There's also `distinctBase` from `std/typetraits` if you want to aviod typing. for i in cast[array[4,uint8]](a): yield i Run
- how to borrow iterator `items` for distinct type? aiac
- how to borrow iterator `items` for distinct type? shirleyquirk
- how to borrow iterator `items` for distinct type? planetis