If "value" means some member variable, pass it to the other object through a method parameter.
If you actually want to make copy of the whole object, create a new instance and pass all member variables there. You can use pack() and unpack() methods for it.