# Scalar Type Casting Magic Methods

- Thread: https://externals.io/message/67305
- Original archive: https://news-web.php.net/php.internals/67305
- Started by Oleku Konko on 2013-05-04T15:51:00+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #67305 — Oleku Konko — 2013-05-04T15:51:00+00:00

URL: https://externals.io/message/67305#67305

Quick Observations : 

I had this issue ( http://stackoverflow.com/questions/16375331/increment-on-tostring ) and it kept me thinking why no error was returned, then i stumble up this RFC :  https://wiki.php.net/rfc/object_cast_to_types

The patch is basic , simple and working and it should be seriously considered in 5.5.  I want to  believe if https://github.com/php/php-src/pull/334 can make it to PHP 5.5 then we should give object_cast_to_types the same opportunity except they are string objections why it should not be so


Thanks
Oleku Konko
