I have a list which will store Number objects. The list will be populated by parsing a list of strings, where each string may represent any subclass of Number.
How do I parse a string to a generic number, rather than something specific like an integer or float?