---
title: "Discussion on \"Cast vs Conversion in C#\" | Hashnode"
description: "Discussion on \"Cast vs Conversion in C#\". Let's talk about cast and conversion in C#. \nCast a variable,  It changes the type of this variable during a statement or an operation. There are multiple reasons to cast a variable. For example, if I have two variables a and b with a = 3.5 and b = 2..."
url: "https://hashnode.com/posts/cast-vs-conversion-in-c/637729a2aab773cba8520910"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cast vs Conversion in C#](https://imdadtech.hashnode.dev/cast-vs-conversion-in-c?utm_source=hashnode&utm_medium=feed)

Let's talk about cast and conversion in C#. Cast a variable, It changes the type of this variable during a statement or an operation. There are multiple reasons to cast a variable. For example, if I have two variables a and b with a = 3.5 and b = 2...

Nov 18, 2022 · 3 min read · imdadtech.hashnode.dev  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[imdad.tech](https://hashnode.com/@imdadTech)

@imdadTech · where peace reigns

  
[View profile](https://hashnode.com/@imdadTech)

@imdad.tech

Hi, my name is Imdad, FullStack developer who likes to use technology to create cool, useful and fun stuffs. Daily I use MEVN Stack to build Web App and Flutter to build mobile App. Sometimes I use Python 🐍 to automate and create game agents. Currently I am interested in blockhain and web3.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
