Change method ToArray to ToList