# Unboxing

The compiler's automatic conversion from a wrapper object to its primitive value.

## What is **Unboxing** in C#?

**Unboxing** — The compiler's automatic conversion from a wrapper object to its primitive value.

```csharp
class Score
{
    object boxedScore = 7;
    int plainScore = 7;
}
```

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

## In other subjects

- [Unboxing in Java](https://www.ask-codey.com/glossary/unboxing)

Source: https://www.ask-codey.com/glossary/unboxing-c-sharp
