Converting NSArray to NSMutableArray in Swift
Also just to convert NSArray to NSMutableArray in Swift:
let name: NSArray = ["John","Jake","Tom"]
var myNewName = NSMutableArray(array:name)
You are better off using this syntax to set the variables
if let tempNames: NSArray = NSUserDefaults.standardUserDefaults().arrayForKey("names") {
names = tempNames.mutableCopy() as NSMutableArray
}