this won't work on ``'10'`` though (e.g. a string that is actually an integer), I think your prior approach is correct if that is a possibility (nto sure)