Convert intval to typecast int #491