net/virtio: fix incorrect cast of void *