diff --git a/modules/core_event_dispatcher/core_event_dispatcher.module b/modules/core_event_dispatcher/core_event_dispatcher.module
index 3fd1176..25ad27c 100644
--- a/modules/core_event_dispatcher/core_event_dispatcher.module
+++ b/modules/core_event_dispatcher/core_event_dispatcher.module
@@ -312,7 +312,10 @@ function core_event_dispatcher_entity_access(EntityInterface $entity, string $op
 /**
  * Implements hook_entity_create_access().
  */
-function core_event_dispatcher_entity_create_access(AccountInterface $account, array $context, string $entityBundle = NULL): AccessResultInterface {
+function core_event_dispatcher_entity_create_access(AccountInterface $account, array $context, $entityBundle = NULL): AccessResultInterface {
+  if (!is_string($entityBundle) && $entityBundle) {
+    $entityBundle = (string) $entityBundle;
+  }
   /** @var \Drupal\hook_event_dispatcher\Manager\HookEventDispatcherManagerInterface $manager */
   $manager = Drupal::service('hook_event_dispatcher.manager.legacy');
   $event = new EntityCreateAccessEvent($account, $context, $entityBundle);
