title: C# Is it possible to pass a type into a method and have the method return an object of that type?
body: <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>