diff --git a/src/Form/ContextConfigure.php b/src/Form/ContextConfigure.php
index b9e4abc..97438ab 100644
--- a/src/Form/ContextConfigure.php
+++ b/src/Form/ContextConfigure.php
@@ -171,9 +171,7 @@ abstract class ContextConfigure extends FormBase {
     // We're dealing with an entity and should make sure it's loaded.
     if (strpos($context_definition->getDataType(), 'entity:') === 0) {
       list(, $entity_type) = explode(':', $context_definition->getDataType());
-      if (is_numeric($form_state->getValue('context_value'))) {
-        $value = \Drupal::entityTypeManager()->getStorage($entity_type)->load($form_state->getValue('context_value'));
-      }
+      $value = \Drupal::entityTypeManager()->getStorage($entity_type)->load($form_state->getValue('context_value'));
     }
     // No loading required for non-entity values.
     else {
