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