Spawning actor from class with expose on spawn variables where the class is a separate variable

Hi all,

I have come across something that i have had trouble getting my head around. I have the below spawn from actor node with the spawned class having exposed variables that can be seen.
Capture.PNG

However, I want the spawned class to be an input for the function that passes the spawn actor through. This causes the exposed variables of the class to disappear as seen below.
Capture.PNG

Some of the classes will have both variables to populate, and some will only have one. What would be the best way to go about this?

No suggestions?