title: Swift string to array of single character strings
body: <p>How can I convert a string into an array of single strings? So <code>String -&gt; [String]</code></p>
  
  <p>If I do <code>Array(myString)</code> it results in an array of characters. I tried flatmap (or compactMap in the latest Xcode beta):</p>
  
  <pre><code>stringArray = Array(myString).flatMap { $0 as? String }
  </code></pre>
  
  <p>Then I get a warning: "Cast from 'Character' to unrelated type 'String' always fails" and `print(stringArray) results in [].</p>
  
  <p>Is this possible?</p>
  
  <p>Edit: this was already answered in a non-accepted answer in this question: <a href="https://stackoverflow.com/questions/25921204/convert-swift-string-to-array">Convert Swift string to array</a></p>