Changes object to obj