Add toObject.