You got an typing error, you properties name is “testField”, you try to convert “textField”
If you correct your input, you get nevertheless an error, because the value of type String has no member “text”, try first convert the testField String to Double
let testField: String = “2.25”
let testFieldToDouble = (testField as NSString).doubleValue