title: Swift Compiler Error Int is not convertible to CGFloat
body: <p>Im trying to run this code but the compiler is bugging me about Int can not convert to CGFloat, but I have never declare min, max or value as variables 'Int' nor mentioned them before.</p>
  
  <pre><code>override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
      /* Called when a touch begins */
      bird.physicsBody.velocity = CGVectorMake(0, 0)
      bird.physicsBody.applyImpulse(CGVectorMake(0, 8))   
  }
  
  func clamp (min: CGFloat, max: CGFloat, value:CGFloat) -&gt; CGFloat {
      if (value &gt; max) {
          return max
      } else if (value &lt; min){
          return min
      }else{
          return value
      }
  }
  
  override func update(currentTime: CFTimeInterval) {
      /* Called before each frame is rendered */
  
      bird.zRotation = self.clamp(-1, max: 0.5, value: bird.physicsBody.velocity.dy * (bird.physicsBody.velocity.dy &lt; 0 ?0.003 : 0.001 ))
  
  }
  </code></pre>
  
  <p>Compiler marks at '-1' the following 'Int' is not convertible to "CGFloat"</p>
  
  <p>Please help</p>