fix issue 10687 - Refused cast from uint[] to array of uint-based enums
at compile-time
Merge pull request #2517 from hpohl/10687

[REG2.064a] fix issue 10687 - Refused cast from uint[] to array of uint-based enums at compile-time