title: c++ get base class object from derived class pointer?
body: <p>Suppose I have Derived* derivedPtr;<br>
  I want Base baseObject from the derivedPtr;</p>
  
  <p>Base baseObject = *derivedPtr; would create the baseObject with the appropriate Base class member variables?  </p>
  
  <p>Thank you</p>