Neat idea, especially to a fellow non-IDE using full-time PHP coder such as myself. That said, I tried the first search that came to mind
"cast to string"
And didn't really get any useful results. First result was for JSON, and the link from php.net was for stripos.
The result I expected, and which I got as the first result in Google was: http://php.net/manual/en/language.types.type-juggling.php