Cannot assign into collection item (through variant) An attempt is made to write to a member when accessing a collection object through a variant.