How to reference a blueprint inside another dynamically spawned blueprint?

I have a ‘DungeonGenerator’ blueprint in the level that generates a dungeon by spawning ‘DungeonTile’ blueprints on a grid. My problem is I need those Dungeon tiles that I spawned to have access to a variable in the Dungeon generator. My understanding is that I would use a Get all actors of class node but if I use that to try and set the reference to my dungeon generator variable it says it’s the wrong type.

I managed to fix this by having the dungeon generator cast to the dungeon tile and set the variable itself