I am using Linq to Entities.
Have an entity \"Order\" which has a nullable column \"SplOrderID\".
I query my Orders list as
List
I found your question trying resolve the same problem, and after a few tries, i got this solution, cast int for each property on the list created by select
int
select
List lst = Orders.where(u=> u.SplOrderID != null).Select(u => (int)u.SplOrderID);