Let's cast it instead?
```
if ( v.type() == _type || ((QMetaType::Type)v.type() == QMetaType::Float && _type == QVariant::Double) ) {
```