title: Swift: How to assign a value whose type is 'AnyObject!'?
body: <p>I'm trying to use the Google Maps pod, but I'm having an issue setting a variable that's of type AnyObject!.</p>
  
  <p>Here's my code:</p>
  
  <p><code>mapPin.userData = venue as Venue</code></p>
  
  <p>It complains <code>Cannot assign value of type 'Venue' to type 'AnyObject!'</code>. How do I fix this error? P.S. Venue is just a custom type that I wrote. </p>