Good point about casting but using `intval` alone may be as issue:
```php
intval("3423dgdf"); //3423
intval("rrer3sd33"); //0
```
Maybe we can use both:
```php
intval((bool)"3423dgdf"); //1
intval((bool)"rrer3sd33"); //1
```
What do you think?