title: C# - Casting a Reflection.PropertyInfo object to its Type
body: <p>In my application, I have a <code>Reflection.PropertyInfo</code> variable named 'property'. When I do a <code>property.GetValue(myObject,null)</code>, the value is <code>Master.Enterprise</code>. Enterprise is a class in my application. So, 'property' contains a reference to a class in my app.</p>
  
  <p>At runtime, I would like to somehow cast 'property' to its type (<code>Master.Enterprise</code>) so I can use it as if it were the class type.</p>
  
  <p>I know this can be done because when I look at the code in the debugger, the debugger correctly casts 'property' to the type its referencing, and I can see all the properties of the Enterprise class in the debugger.</p>
  
  <p>How might I go about doing this?</p>