You can (theoretically) convert any type to any other type. Therefore, you can make a String into an int, or a char into an int. See This applet for code. However, the conversion methods may make it harder to read and introduce the possibility for error (since bits may be truncated).
IMO, using a switch for something besides an int would need to be looked at. Perhaps a new switch with overloaded String, char, etc. types could be made, if Java supported method overloading. (They do it for the + operator and such, why not make it publically available? C++ may (I don't think so) allow other type switching, but it can at least be overloaded to provide the correct functionality.
gubmo