title: Convert an object to a type based on the string value passed in C#
body: <p>I have a requirement where the object type [name of the object] is passed as a string variable. Now based on the object name passed, I need to create that object type. Please note the string value contains the exact object type name. I have written a code snippet but it is throwing an exception.</p>
  
  <p>e.g - </p>
  
  <pre><code>string objectName = "EntityTest.Entity.OrderEntity";//Entity type name
  object obj = new object();
  object newobj = new object();
  newobj = Convert.ChangeType(obj, Type.GetType(objectName));
  </code></pre>
  
  <p>I do this I get error -- > <code>Object must implement IConvertible.</code></p>
  
  <p>My entity <code>OrderEntity</code> has already implemented the <code>IConvertible</code> interface. </p>
  
  <p>Any help/suggestion is greatly appreciated. Is there any other way I can create the object to fulfill my requirement.</p>