Using NSNumber from NSNotification.userInfo[UIKeyboardAnimationCurveUserInfoKey]
In Objective C I would do the following
[UIView animateWithDuration:1.0
In Beta-5
UIViewAnimationOptions.fromRaw( UInt( ( p.userInfo[ UIKeyboardAnimationCurveUserInfoKey ] as NSNumber ).unsignedIntValue << 16 ) )!