title: casting object with user defined type
body: <p>Can we cast an object with user-defined types, like we do for normal data types?
  Like say we do type cast for int like:</p>
  <p><code>int variable_one = (int)variable_name;</code></p>
  <p>So can we do like: <code>(complex) object_name;</code>
  where complex is the class I have written for complex number addition using <code>operator+</code> overloading.</p>
  <p>Is it possible in this normal way? Or do we need to write some function before calling this statment? Or is it not possible at all to type-cast like this?</p>