Fix #10017 Can not assign to a Variant another Variant holding a bigger structure

...r structure