In reply to verif_25:
I read an interesting article from Cliff Cummings.
http://www.sunburst-design.com/papers/CummingsDVCon2023_uvm_resource_db_API.pdf. He advocates for the use of uvm_resource_db for this purpose and I see his point. You can easily access the DB from an uvm_object. In your case though an OOP-style passing might be all you need.
Grab a pointer to your cfg and assign your variable.
agt_cfg.RD_LATENCY = RD_LATENCY;
Good luck