What is the purpose of the const keyword here? I have tried the same approach without const, and also without casting to a void pointer and both methods seem to work.