title: Python object conversion
body: <p>Assume that we have an object <code>k</code> of type <code>class A</code>. We defined a second <code>class B(A)</code>. What is the best practice to "convert" object <code>k</code> to <code>class B</code> and preserve all data in <code>k</code>?</p>