title: Why does a UITextField have a .text value of Optional("Actual Text") Swift
body: <p>I have a UITextField and when I get the <code>MyTextField.text</code> value, instead of just the text value it prints </p>
  
  <blockquote>
    <p>Optional("UITextField Value")</p>
  </blockquote>
  
  <p>How do I get it to print just the actual text <strong>without the Optional()</strong>, so it is just the text that is in the UITextField. For Example:</p>
  
  <pre><code>import UIKit
  
  class FirstViewController: UIViewController {
      @IBOutlet var MyTextField: UITextField!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          print(MyTextField.text)
      }
  }
  </code></pre>
  
  <p>Let's say the TextField value was "Hello World"
  It would print: "optional("Hello World")"</p>
  
  <p>Thank You in advance</p>