boxing
Wrapping a value type in an object on the heap.
Boxing converts a value-type value to object or an interface type by copying it into a heap allocation; unboxing copies it back out and requires the exact type.
Loading interactive…
Examples
object o = 42;boxes theintinto an object on the heap;int n = (int)o;unboxes it again.
See also