title: How to get this value as a CGFloat?
body: <p>I am asking for an Value like this:</p>
  
  <pre><code>[self.layer valueForKeyPath:@"transform.rotation.z"]
  </code></pre>
  
  <p>bit I need to pass it to a method which takes a CGFloat as parameter. What's the casting trick here?</p>