diff --git a/core/lib/Drupal/Core/Field/FieldItemList.php b/core/lib/Drupal/Core/Field/FieldItemList.php
index 86bac79..37dad2a 100644
--- a/core/lib/Drupal/Core/Field/FieldItemList.php
+++ b/core/lib/Drupal/Core/Field/FieldItemList.php
@@ -402,7 +402,7 @@ public function equals(FieldItemListInterface $list_to_compare) {
     array_walk($value1, $callback);
     array_walk($value2, $callback);
 
-    return $value1 === $value2;
+    return $value1 == $value2;
   }
 
 }
diff --git a/core/modules/system/src/Tests/Entity/FieldSqlStorageTest.php b/core/modules/system/src/Tests/Entity/FieldSqlStorageTest.php
index 549c17a..8678bcf 100644
--- a/core/modules/system/src/Tests/Entity/FieldSqlStorageTest.php
+++ b/core/modules/system/src/Tests/Entity/FieldSqlStorageTest.php
@@ -579,4 +579,18 @@ public function testTableNames() {
     $this->assertEqual($this->tableMapping->getDedicatedRevisionTableName($field_storage, TRUE), $expected);
   }
 
+  /**
+   * Tests FieldItemList::equals() deals with type conversions in storage.
+   */
+  function testFieldItemListEquals() {
+    $entity_type = 'entity_test_rev';
+
+    $entity = entity_create($entity_type);
+    $entity->set($this->fieldName, 17);
+    $entity->save();
+
+    $loaded_entity = entity_load($entity_type, $entity->id(), TRUE);
+    $this->assertTrue($entity->get($this->fieldName)->equals($loaded_entity->get($this->fieldName)), 'FieldItemList::equals() considers field value to be the same after save().');
+  }
+
 }
