Originally posted by Jean-Francois Briere:
[QB]Generics and arrays don't mix well. This is one of the zillion problems with generics.
Actually, I think it's rather a problem with arrays; as you probably know, their type safety has been broken since day 1.
A better solution to the problem would be ditching the array and using some List implementation. If it suits your needs, of course.