You can directly use intval as callback. Using a special function just to use casting instead of "intval" isn't necessary