Type conversion,Not correct, why?

so new var 2 widget contains another widget of type inventory slot? or is it the inventoryslot itself?