title: How to get Session's value in a class object?
body: <p>I have assigned session a custom class's object like:</p>
  
  <pre><code>Services Obj = getServiceDetails(3); //getting all data of Service where Id = 3
  Session["ServiceObj"] = Obj;
  </code></pre>
  
  <p>Now I want to assign its value to same class's another object in a model class. I don't know how to do it.</p>
  
  <p>I tried but it is not valid way.:</p>
  
  <pre><code>Services oldObj = &lt;Services&gt;Session["ServiceObj"];
  </code></pre>
  
  <p>Pls Help me. I don't know how to do it.</p>