fix:Resolve the compile error of the cast_type on vs