C# Linq to SQL: How to express “CONVERT([…] AS INT)”? June 15, 2023 by Tarik C# has Convert.ToInt32() which should do what you’re looking for.