modify the type and line length
reformat and correct the static_cast