Usage of Var

In reply to dave_59:

Is there a way in SystemVerilog to create a variable that refers to a certain type.

For example: I need an associative array that can store a type

var type assoc_array[string];

else where I would like to use this array to create parameterized agents. I want to pass the value or the type stored in my assoc array when creating agents that deal with that type of packets.

Thanks
Prasad.