title: c++ cast vector<Inherited*> to vector<abstract*>
body: <pre><code>class Interface{};
  
  class Foo: public Interface{};
  
  class Bar{
  public:
      vector&lt;Interface*&gt; getStuff();
  private:
      vector&lt;Foo*&gt; stuff;
  };
  </code></pre>
  
  <p>How do I implement the function <code>getStuff()</code>?</p>