Consider not using C-style casts on pointers. Those are dangerous. Simple static_cast<constvoid*>(myArray) is safer and works as well.
But there is even simplier way to do that: myArray — all pointers can be implicitely cast to void type, so just use your pointer directly without any casts.