---
title: "What is Boxing and Unboxing type conversion?"  
description: "What is Boxing and Unboxing type conversion?"  
author: "Manoj Bhatt"  
published: 2016-01-26  
updated: 2016-01-26  
canonical: https://www.mindstick.com/forum/33929/what-is-boxing-and-unboxing-type-conversion  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# What is Boxing and Unboxing type conversion?

Hi.... I am little [bit](https://www.mindstick.com/forum/33411/how-we-tell-programmatically-if-i-m-running-in-64-bit-jvm-or-32-bit-jvm) confuse between [boxing and unboxing](https://www.mindstick.com/articles/167412/boxing-and-unboxing) , Please give me a answer.\
thank you.

## Replies

### Reply by Anupam Mishra

C# Type System contains three Types , they are Value Types , Reference Types and Pointer Types. C# allows us to convert a Value Type to a Reference Type, and back again to Value Types . The operation of Converting a Value Type to a Reference Type is called [Boxing](https://www.mindstick.com/articles/33/value-type-and-boxing) and the reverse operation is called Unboxing.

```
int Value1 = 1;Object Object1 = Value1; //Boxingint i = (int)Object1; //Unboxing
```


---

Original Source: https://www.mindstick.com/forum/33929/what-is-boxing-and-unboxing-type-conversion

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
