Building save system but getting error CS0029

Hello. I am attempting to make a save system in order to save inventory. I think I am close to getting it done but I keep getting the following error:

Error CS0029 Cannot implicitly convert type ‘InventoryItemWeapon’ to ‘UnityEngine.GameObject’

I just want to see if there is any way around it. Thanks.

Could you please attach your code?

Be sure to use Code tags when pasting code into your post.

try write behind your line with InventoryItemWeapon as GameObject