Create Object to Value code