asMap() [Variant class]

Returns a reference to the value contained in this variant as an VariantMap. This can be used to modify the value of the variant and to more efficiently read the map without having to copy it.

VariantMap& asMap();

This method will not convert the type of variant. If the Variant is not already a VariantMap then this method will assert.

See value, as, and to for when to use the asXXX() vs. other accessors.