diff --git a/modules/mono/mono_gd/gd_mono_wasm_m2n.h b/modules/mono/mono_gd/gd_mono_wasm_m2n.h index 455d46309d6..e0ad4c5e9b6 100644 --- a/modules/mono/mono_gd/gd_mono_wasm_m2n.h +++ b/modules/mono/mono_gd/gd_mono_wasm_m2n.h @@ -201,7 +201,7 @@ struct m2n_arg_cast_helper { template struct m2n_arg_cast_helper { static T cast(Mono_InterpMethodArguments *p_margs, size_t p_idx) { - return (T)(size_t)p_margs->fargs[p_idx]; + return (T)p_margs->fargs[p_idx]; } };