As you are selecting the property, just get the value of the nullable:
List<int> lst =
Orders.Where(u => u.SplOrderID != null)
.Select(u => u.SplOrderID.Value)
.ToList();
As you are selecting the property, just get the value of the nullable:
List<int> lst =
Orders.Where(u => u.SplOrderID != null)
.Select(u => u.SplOrderID.Value)
.ToList();