$data1 = array("1","2","3","4","5");
$data2 = $array_map(
create_function('$value', 'return (int)$value;'),
array_values($data1)
);

$data2 array will be
$data2 = array(1,2,3,4,5);