This is pretty sneaky, but I think conceptually Cesium enumerations are already strongly tied to their numeric values, so I think it's OK.  You can omit the .value and it will still work (enumerations coerce to numbers correctly), and maybe that would be better.