title: Dictionary is not convertible to Void
body: <p>Hi guys I've been searching the net without much luck but I'm trying to get around Alamofires asynchronous nature. I'm trying to return the JSON response as a dictionary but Xcode is giving me "Dictionary is not convertible to 'Void'"</p>
  
  <pre><code>func homePageDetails(userName:String) -&gt; (Dictionary&lt;String,AnyObject&gt;){
      let username = userName
      let hompePageDetails = Alamofire.request(.GET, "http://example.com/API/Bunch/GetHomePageDetails/\(username)/").responseJSON{(request, response, JSON, error) in
      print(JSON)
      var test = JSON as Dictionary&lt;String,AnyObject&gt;
      return test
      }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>