[cpp] Add pointer reinterpret and work a bit on finalizer