parseInt /String

int parseInt(string str)

Parses a string into an int primitive.

Sample:

string str = "42";
int value = parseInt(str);