title: How to Cast the DisplayObject into MediaElement in as3?
body: <p>Is it possible to Cast the DisplayObject into MediaElement.Am trying to add the DisplayObject into the MediaContainer, but I got the following error:  </p>
  
  <blockquote>
    <p>-1067: Implicit coercion of a value of type flash.display:Loader to an unrelated type org.osmf.media:MediaElement.
    -mediaContainer</p>
  </blockquote>
  
  <p>_loader is the variable of <code>DisplayObject</code>.</p>
  
  <pre><code>mediaContainer.addMediaElement(_loader);
  </code></pre>
  
  <p>How can I rectify this problem? I am using Flash Builder4.</p>