dimension As
Returns the unit-convertable Dimension configured for the requested measurement, cast to the desired type.
Return
The associated dimension if it can be cast to T; otherwise null.
Parameters
T
The expected Dimension subclass (e.g., UnitTemperature).
for Type
The measurement category to resolve.