SurveyToGo: intParse

intParse(inA): converts a string representation of an integer to an int type; throws exception if not a valid integer.