Parses a string into an int primitive.
string
int
Sample:
string str = "42"; int value = parseInt(str);