title: concatenate in swift: Binary operator '+' cannot be applied to operands of type 'String' and 'AnyObject'
body: <p>I get the error in Swift and don't understand it when I do this:</p>
  
  <blockquote>
    <p>if(currentUser["employer"] as! Bool == false) { print("employer is
    false: "+currentUser["employer"] as! Bool) }</p>
  </blockquote>
  
  <p>But I can do (Its not actually printing anything though, maybe another problem):</p>
  
  <blockquote>
    <p>if(currentUser["employer"] as! Bool == false) {
    print(currentUser["employer"]) }</p>
  </blockquote>
  
  <p>Results in error:</p>
  
  <blockquote>
    <p>Binary operator '+' cannot be applied to operands of type 'String' and
    'AnyObject'</p>
  </blockquote>
  
  <p>Similarly:</p>
  
  <pre><code>                let currentUser = PFUser.currentUser()!
                  let isEmployer = currentUser["employer"]
                  print("isEmployer: \(isEmployer)")
                  print(currentUser["employer"])
  </code></pre>
  
  <p>But these two don't work:</p>
  
  <pre><code>                print("employer: "+currentUser["employer"])
                  print("employer: \(currentUser["employer"])")
  </code></pre>
  
  <p>I also happen to be using Parse to get data, and not sure if that is the right way either.</p>