title: Cast Callback Parameter in Swift
body: <p>I'm trying to cast SKNode to my own subclass of SKNode (Flag).</p>
  
  <pre><code>scene.enumerateChildNodesWithName("flag") {
      node as Flag, stop in
          node.methodAvailableToFlagObject()
  }
  </code></pre>
  
  <p>The code above throws an error. Is there a solution?</p>
  
  <p>I'm trying to avoid having to do this:</p>
  
  <pre><code>scene.enumerateChildNodesWithName("flag") {
      node, stop in 
          let realNode = node as Flag
          realNode.methodAvailableToFlagObject()
  }
  </code></pre>
  
  <p>Thanks much for any help!</p>