You can assign void* to pointer type without cast