Assigning C++ object to the script object in less explicit way