public static void HandlePrepare(this UIStoryboardSegue segue, NSObject prepareHandler) { var prepare = (Action <object>)prepareHandler.Unwrap(); prepare(segue.DestinationViewController); }