How can I set/ get a struct using uvm_config_db

In reply to gani:

You can pass any data type to the config db. But your structs have a different space and this generates your error message.
BTW the better solution for your problem is to use configuration object (class object).