I have a data table and a column contains int values. I have not specified the column with any datatype. When I perform the following.
object sum = dttest.Co
try
dttest.Compute("Sum(Convert([Value], 'System.Int32'))","[Value] IS NOT NULL");