Remove malloc cast

It's not needed since malloc's return type is void*. See http://stackoverflow.com/questions/605845/do-i-cast-the-result-of-malloc