Conversion from string to integer formats

@lourena.coutinho
have a look here as it is very close to your case:

more down you will get some sample on how to get control on the parsing and formats. Also it is mentioned on how to check if parsing possible or not.