using System.Collections.Generic;
using System.Linq;
public class Program
{
public static void Main()
var list = new List<int> { 1, 2, 3 };
List<int> listAfterWhere = (List<int>)list.Where(x => x > 5);
}