You can just do a ptr.set(out) here.