Here is how to convert String to Integer

int num = int.Parse(“24“);