As often I risk making fools of conversions into problems, I will post a bit of code that I have used during programming for iOS! You never know that you also run into this problem in the future.
NSString * stringa = @"1";
int intero = [stringa intValue];
Annunci