[2/2] fix thrift build on OSX

conversion to void* is implicit and shouldn't have a cast