added fromJS and fromCPP object conversion;