Redo cast cause i don't know C++