Casting is the term given to how a value can be converted to a different data type.
All data is stored as binary, but different data is stored in different ways, for example:
Some languages require that you state the datatype when you declare your variables (e.g. VB.net and C# ).
Other languages automatically change the datatype depending on the type of data that is assigned to a variable (e.g. Python and Javascript).
The most common place you will see casting taking place is when a user enters data. INPUT commands return data as a string, so if you ask a user to enter a numeric value you will need to convert it from a string to a numeric data type.
Example Casting Functions: