ERT interview question

How do you convert a string to an integer.