I understand what you are driving at, but with the code you have, it doesn't make sense. If myString2 is a String in the code, why would you need to cast it dynamically?
Maybe a better approach is to use the generic Object type and handle them with explicit casts based on the Objects types. I assume that at some point you will have to know what type they are and you will know how you are going to handle each different type. If not, then perhaps a more comprehensive explanation of the final goal would be helpful to solving the problem.
Peter
-------------------------
Work smarter, not harder