class func stringToArray(input:NSString) ->NSArray {
let arrInput = (0..<input.length).map({
Character(UnicodeScalar(input.character(at: $0))!)
})
return arrInput as NSArray
}
or
class func stringToArray(input:String) ->Array {
return input.map { String($0) }
}