title: Swift Converting Character to String
body: <p>I have an issue with converting character type to String type. First of all, I have below extension of String for finding nth character within String.</p>
  
  <pre><code>extension String {
      func characterAtIndex(index: Int) -&gt; Character? {
          var cur = 0
          for char in self {
              if cur == index {
                  return char
              }
              cur++
          }
          return nil
      }
  }
  </code></pre>
  
  <p>I get what I want with this class extension. However when I use that nth character for title of my custom UIButton, gives an error. My Uibutton Class is</p>
  
  <pre><code>class hareketliHarfler: UIButton {
      init(frame: CGRect) {
          super.init(frame: frame)
          // Initialization code
      }
      func getLetter(letter:String!){
          self.titleLabel.text = letter 
      }
  }
  </code></pre>
  
  <p>The error show when i try to access "getLetter(letter:String)" function. Here is example of main view Controller codes:</p>
  
  <pre><code>    var harfim = hareketliHarfler(frame: CGRectMake(100,100,100,100))
  var str="This is my String"
  var bufi=str.characterAtIndex(3)
      harfim.getLetter(bufi as AnyObject) ****
  </code></pre>
  
  <p>In <em>*</em> section I try .getLetter(bufi), .getLetter(bufi as String) also I try to change parameter type of function. Look like: func getLetter(letter:Character!) or func getLetter(letter:AnyObject!)...etc
  Didn't find a way. Need a help on that. Thank you</p>