Now does basic type checking to make sure it can be converted using stringstream