asArray() [Variant class]

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

VariantArray& asArray();

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

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