>FWIW, casting to (int) gives me a runtime error -- "Specified cast is not valid"-- even though the object is not null.
>
>If I try to cast (int)dsQuery["mycol"].ToString() (not your suggestion, just something I tried), I get a compile error about not being able to cast from string to int -- which is why I think I ended up doing the Int32.Parse(Column.ToString()) earlier.
>
>>The other way is to cast the object to an int
>>
>>(int)dsQuery["SalesMin"] > 0
>>
>>
>>You will run into problems if you are trying to cast a null object though.
>>
>>Morgan
That other way is simple to Convert.ToDecimal(dsQuery["mycol"]), as well. I'm not sure if that will error if it is null or not, but you can give it a try.
Morgan