C# Type castingIn C#, like many other programming languages Type casting is when you assign a value of one data type to another type.
In C# type casting is classified in 2 types:Implicit Casting (automatically) - converting a smaller type to a larger type size:
Explicit Casting (manually) - converting a larger type to a smaller size type:
C# Implicit Casting (automatically) Example
C# Explicit Casting (manually) Example
In this page (written and validated by A. Gawali) you learned about C# Type casting . What's Next? If you are interested in completing CS tutorial, your next topic will be learning about: CS Defining Constants.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: email@example.com.