Fixed cast/alignment warning by cppcheck

Everywhere I search, the last param of MPI_Alloc_mem
is void*, so I don’t see why this contortion was
even required.
1 job for cppcheck-fixes2