C# & .Net Framework Reference
Boxing and Unboxing (C#)
Full Name: cs.boxing
Short Name: cs.boxing
Type of Entity: C#
Abstract: Boxing and unboxing enable value types to be treated as objects. Boxing a value type packages it inside an instance of the Object reference type. This allows the value type to be stored on the garbage collected heap. Unboxing extracts the value type from the object. In this example, the integer variable i is boxed and assigned to object o.