title: TypeConverter for property of Type object
body: <p>I need to display an object correctly in the propertygrid.
  my class looks like this:</p>
  
  <pre><code>public class PropertyItem
  {
      public PropertyDescription PropertyDescription { get; set; }
  
      [Description("the value"), Browsable(true)]
      public object Value { get; set; }
  
      public PropertyItem(PropertyDescription propertyDescription, object value)
      {
          PropertyDescription = propertyDescription;
          Value = value;
      }
  
      public override string ToString()
      {
          return this.PropertyDescription.Name + ": " + PropertyDescription.Type + ": " + Value;
      }
  }
  </code></pre>
  
  <p><code>Value</code> is of type <code>object</code> and this cannot be changed.
  The <code>PropertyDescription</code> has the type of the <code>Value</code> and this can be anything (<code>string</code>, <code>int</code>, <code>bool</code>...)</p>
  
  <p>When I set the <code>SelectedObject</code> of my <code>PropertyGrid</code>, the <code>Value</code> is always disabled.</p>
  
  <p>How would I write a <code>TypeConverter</code> to convert the <code>object</code> <code>Value</code> to the <code>Type</code> in the <code>PropertyDescription</code>?</p>