title: How to check if a given object is an instance of the class name given in a String?
body: <p>I have the following variables</p>
  
  <pre><code>MyObj myObj = new MyObj();
  String myString = "myPackage.MyObj";
  </code></pre>
  
  <p>where <code>MyObj</code> look like this</p>
  
  <pre><code>package myPackage;
  
  class MyObj {
      private String one;
      private String two;
  }
  </code></pre>
  
  <p>How can I check if <code>myObj</code> is an instance of the full qualified class name as represented by the string <code>myString</code>?</p>