title: Can we Cast SObject dynamically in Salesforce(apex)?
body: <p>Is it possible to Cast SObject dynamically? </p>
  
  <p>Example :</p>
  
  <p>I know we can do this :</p>
  
  <pre><code>(Account) Sobject
  </code></pre>
  
  <p>But I want to do this as the return type of sObject changes based on certain parameters.</p>
  
  <pre><code>(Dynamically Passing the Name) SObject
  </code></pre>
  
  <p>Any Kind of way around will be helpful... Thanks in advance :) </p>