ERT Interview Question

How do you convert a string to an integer.