Introduction
Type casting changes data from one type to another so you can use it correctly in your queries.
When you want to add a number stored as text to a real number.
When you need to compare a string with a number.
When you want to format a date stored as text into a date type.
When you want to convert a number to text to display it with other strings.
When you want to ensure calculations use the right data type.