# Type Conversion

*noun*

say it: **“TYPE kun-VER-zhun”** **/taɪp kənˈvɜːrʒən/**

Changing a value from one data type to another, such as an int into a double.

## What is **Type Conversion** in C#?

**Type Conversion** — Changing a value from one data type to another compatible type.

```csharp
class TicketCounter
{
    void ConvertValues()
    {
        int tickets = 7;
        double exactTickets = tickets;
        int wholePrice = (int)7.9;
    }
}
```

## In a sentence

- “The **type conversion** from int to double happened by itself, because no data was lost.”

Level: Novice · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=1)

Updated: November 9, 2026

## In other subjects

- [Type Conversion in PowerShell](https://www.ask-codey.com/glossary/type-conversion-powershell)
- [Type Conversion in Python](https://www.ask-codey.com/glossary/type-conversion)

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