diff --git a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
index 43bcaa64effadba2674b8ab6e6ee7037f13c3698..4c976e9fa4a38f336287f3cbf2b88508716c2944 100644
--- a/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
+++ b/typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
@@ -585,13 +585,13 @@ class BackendUserAuthentication extends AbstractUserAuthentication
      * If user is admin TRUE is also returned
      *
      * @param string $type The type value; "webmounts", "filemounts", "pagetypes_select", "tables_select", "tables_modify", "non_exclude_fields", "modules", "available_widgets", "mfa_providers"
-     * @param string $value String to search for in the groupData-list
+     * @param string|int $value String to search for in the groupData-list, can also be a integer for "pagetypes_select" or "allowed_languages")
      * @return bool TRUE if permission is granted (that is, the value was found in the groupData list - or the BE_USER is "admin")
      */
     public function check($type, $value)
     {
         return isset($this->groupData[$type])
-            && ($this->isAdmin() || GeneralUtility::inList($this->groupData[$type], $value));
+            && ($this->isAdmin() || GeneralUtility::inList($this->groupData[$type], (string)$value));
     }
 
     /**