Help with converting a sting of chars to an int via toInt().

Well this worked beautifully, and it was a great explanation too. Very much appreciated :).