include: fixing reinterpret_cast->static_cast warnings