How to access variables from another class in C++

I didn’t receive any error but the variable Min/MaxLifespan still can’t be accessed from spawner.cpp. I try to change the value of the Min/MaxLifespan variable in editor through spawner but it didn’t work. APooledObject is not subclass of UWorld.