obtain the value from ConstantValue