Called ToArray or ToList on IEnumerable to avoid possible multiple enumerations