Prefer ICollection.CopyTo for converting to arrays.