If you are looking to convert a String to an Integer have look at the parseInteger() function.
There are other conversion methods such as toString(), parseDecimal(), parseDateTime(), and others documented in the Expressions documentation.
https://docs.mendix.com/refguide/expressions
You can get the attribute value of the Object and pass that to toString() function, this might help