Object properties conversion as new function