title: How to make type cast for python custom class
body: <p>Consider a class;</p>
  
  <pre><code>class temp:
      def __init__(self):
          pass
  </code></pre>
  
  <p>I make an object of it;</p>
  
  <pre><code>obj = temp()
  </code></pre>
  
  <p>Convert it to string;</p>
  
  <pre><code>strObj = str(obj)
  </code></pre>
  
  <p>Now, how can i convert strObj to an object of temp class??</p>
  
  <pre><code>org = temp(strObj)
  </code></pre>