Gameplay Tags - Item Quantities

I don’t know if you saw the screenshot I posted earlier of the structure I made, but I made a struct then a data table based on it. So now, I’m at one last impasse: how do I cast to a variable within the struct variable? Like, say, I want the game to detect whether or not the player not only has a certain item but also the correct number of items? (Which would be, in this case, the ItemName (Name) and Quantity (Integer) variables.)