title: foo:FooBar = e.target of MouseEvent?
body: <p>I have many different Units on a map and I want to discover which one has been clicked by the mouse.  I want to do something like this:</p>
  
  <pre><code>private function setupUnit(gridx:uint, gridy:uint):void {
      unit = new Unit(gridx, gridy);
      unit.addEventListener(MouseEvent.CLICK, onUnitClick);
  }
  
  private function onUnitClick(e:MouseEvent):void {
      active_unit:Unit = e.target;
  }
  </code></pre>
  
  <p>And later use active_unit.method().  But this throws the error "Implicit coercion of a value with static type Object to a possibly unrelated type Unit"</p>
  
  <p>I'm sure there's a super simple way to do this =P.  Any recommendations?</p>