Remove casts that are useless since the argument is void *.