Use reinterpret cast on the host side