In UiPath, you may use the following method to convert a string to an integer.
Convert.ToInt32(String variable_name)