In programming, type casting (or type conversion) allow us to change an expression from one data type to another. For example, converting an integer to a floating point number.

Prof Stumm says it’s usually a pretty bad practice to type cast.1

Footnotes

  1. ”You’ll have to write a three page report justifying why.” - Prof Stumm