A Swift sliderChanged method (handling the Value Changed event)

I’ve seen a few approach to handling a Swift “Value Changed” event, but when you’re only interested in whole number (50, 51, etc.), this approach seems the simplest:

// comes from the Value Changed event
@IBAction func sliderChanged(sender: UISlider) {
    let sliderValue = lroundf(sender.value) //50, 51, ...
    // do something with `sliderValue` ...
}

I’ve seen people take different approaches to get the slider value, but this approach that uses the lroundf method seems the simplest. With this line of code, sliderValue ends up being an Int.