title: Change text value through a static text reference?
body: <p>I am searching through my DisplayContainer for text fields to change them but i have a problem with changing the reference:</p>
  
  <pre><code>    for (var i:uint = 0, n:uint = rootContainer.numChildren; i &lt; n; ++i) {
          var item:DisplayObject = rootContainer.getChildAt(i);
          if (item is DisplayObjectContainer) {
              updateFields(DisplayObjectContainer(item));
          } else if (item is TextField) {
              item.text  = "hej";
          }
      }
  </code></pre>
  
  <p>The item.text throws:</p>
  
  <pre><code>1119: Access of possibly undefined property text through a reference with static type flash.display:DisplayObject.
  </code></pre>
  
  <p>How do i convert it so i can use it?</p>