ECMA-334 C# Language Specification13.2.4: Unboxing conversions |
An unboxing conversion permits an explicit conversion from type object to any value-type
or from any interface-type
to any value-type
that implements the interface-type
. An unboxing operation consists of first checking that the object instance is a boxed value of the given value-type
, and then copying the value out of the instance.
Unboxing conversions are described further in 11.3.2.