C# - Casting a Reflection.PropertyInfo object to its Type
<p>In my application, I have a Reflection.PropertyInfo variable named 'property'. When I do a property.GetValue(myObject,null), the value is Master.Enterprise. 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 (Master.Enterprise) 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>
