Attempt to convert incoming string into int or float.