DATA TYPES AND VARIABLES - Converting Data Types


I’m stuck at point 2 " Hmm. That didn’t work. Instead, we got the error message:

Looks like we’re going to have to cast their response as an int some other way!

Try explicitly casting the value of faveNumber as an int and rerun the program. What happens this time?"

What is the solution please?

Thank you.

Most of the lessons explain how to do certain things in the “Learn” section at the top.

Have a read through it.
For this specific issue, it is explained at the end, from this sentence:
So, if we’re to fix the error in our previous code, we’d rewrite it as follows: