Question: I get an error with the following code:

```
func prepareAnimationForDictionary(settings: NSDictionary,repeated: Bool) -> SKAction {
        let atlas: SKTextureAtlas = 
          SKTextureAtlas(named: settings["AtlasFileName"] as! String)
        let textureNames:NSArray = settings["Frames"] as! NSArray
        let texturePack: NSMutableArray = []

        for texPath in textureNames {
            texturePack.addObject(atlas.textureNamed(texPath as! String))
        }

        let timePerFrame: NSTimeInterval = Double(1.0/(settings["FPS"] 
         as! Float))

        let anim:SKAction = SKAction.animateWithTextures(texturePack, 
          timePerFrame: timePerFrame) // the error I get is here
        if repeated {
        return SKAction.repeatActionForever(anim)
        }else{
        return anim
        }

```

Answer: 
Just use the expected (Swift) types

```
...
let textureNames = settings["Frames"] as! [String]
var texturePack =  [SKTexture]()

for texPath in textureNames {
    texturePack.append(atlas.textureNamed(texPath))
}
...

```

From the Swift point of view the mutable Foundation collection types `NSMutableArray` and `NSMutableDictionary` are type unspecified and are not related to the Swift native counterparts.
Change `timePerFrame`
to `(timePerFrame as [AnyObject]) as! [SKTexture]`