Hi,
I downloaded your test package:
-- why did you implemented a next frame event every other state? to get a GameObject name, convert it to int and do an operation on this can be done in one state or a series of states without any frame delay.
-- ConvertStringToInt works converting "1" to 1 properly. I don't see where you have issues with this other than in your logic since you straight away substract -1 to that conversion leading to 0 in your case. Can you confirm you are aware of this?
If you have trouble with an action, do a scene with nothing but a start state and the action in it, so for example use ConvertStringToInt simply
So in your case I think it's simply the substraction by -1 at the end that you should remove. Else let me know, we'll investigate further.
Bye,
Jean