handles conversion of Material.X to InventoryType.X