I have the following error for this code "Illegal assignment from Contact to String "
system.debug gives me email address, but its giving me error when I want to insert that value into that custom field inside the opportunity
List<Contact> allContacts = [Select Email From Contact where AccountId=: account.id Limit 1];
for (Contact currentContact : allContacts) {
System.debug('Current Contact Email' + currentContact);
Opportunity.Email_1__c = currentContact.toString();
}
System.debug('contat' + allContacts);