SyntaxFix
Write A Post
Hire A Developer
Questions
You can first cast object to string and then cast the string to int; for example:
string str_myobject = myobject.ToString(); int int_myobject = int.Parse(str_myobject);
this worked for me.