Ensure a QObject method is passed a userdata