C# Is it possible to pass a type into a method and have the method return an object of that type?
<p>This seems like it would be possible. </p>

<pre><code>protected SameObjectTypeAsInputParameterObjectType GetAValue(someObject,TypeOrReturnObjectYouWant){

//check to see if someObject is null, if not, cast it and send the cast back

}
</code></pre>
