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

http://d.puremagic.com/issues/show_bug.cgi?id=10687

@donc it's better if you take a look at this.