I was wondering what is the best way to typecast a value from one type to another.
Which variant should we use:
intval($value);
I prefer using
settype($value,getType(intval((int)$value)));