This implicit typecast cause error on some compilers, manually casting the void pointer before referencing fixes the issue.