Removed obsolete toObject conversion