Programming - Concept
Type casting
Converting a value from one data type into another
What's it for?
Lets software treat the same information in a different form when an operation requires it.
For example…
A program receives the text “42” from a form and type-casts it into the number 42 before doing a calculation