treehugger.Constants
We need the equals method to take account of tags as well as values.
Convert constant value to conform to given type.