my friend and me found this while debugging an application
<
The string is converted to a number using "type juggling". This is shown in the documentation, too.
For this particular case, the string doesn't start with a number, so it becomes equal to 0 when cast.