Any of those are fine. Personally I like the direct cast (int) because I’m lazy. If you need some special handling, a good thing to use is TryParse which will catch any failures
int myIntResult = 0;
bool GoodConversion = int.TryParse(aString, out myIntResult);
//now you can test for a good conversion, then use the myIntResult
``
[quote="willetta, post:1, topic:44187"]
What about using ttQuoteDtlR[“PartNum”] vs ttQuoteDtlR.PartNum?
[/quote]
Always use the strongly typed version, ttQuoteDtlR.PartNum. This allows the compiler to do some error checking for you.