Improve performance

- Replace all "intval()" with (int)