Revert "nitpickingly casting a void pointer to the appropriate struct pointer."

This reverts commit 7e1020fd475214caf5c5b61932a2fb341d297ec8.