ensure we only cast on data_ in insert and extract to avoid strange aliasing issues