Is there a way to access the weight of an object?
I've figured out that I can do
X::Weight(label=dimension,value=2);
Weight.get($X$,label=dimension);
to determine that the Weight attribute has been set. But is there a way to find out that X has weight 2?