The base type of CompressionMethod is ushort, so it's implicitly convertible.