A string of what? Ideally you convert between bases using itoa/atoi so you have to first convert it to an integer then back to string.