static cast from QVariant::Type to QMetaType::Type by @Fsu0413