
Example 1: Converting User Input When taking input from a user, it is always in the form of a string. You may need to convert this input to the appropriate type.
Example 2: Calculating the Area of a Circle If the radius of a circle is given as a string, you can convert it to a float to perform mathematical operations.