fix Issue 10687 - Refused cast from uint[] to array of uint-based enums at compile-time