[c#] Best way to convert IList or IEnumerable to Array