diff --git a/contextio.module b/contextio.module
index 139667b..b0ed2a1 100644
--- a/contextio.module
+++ b/contextio.module
@@ -2315,7 +2315,7 @@ function _contextio_check_types(callable $function, array $func_args, $array_var
       'sync_all_folders' => CONTEXTIO_STRING,
     ],
     'token' => CONTEXTIO_STRING,
-    'type' => CONTEXTIO_STRING,
+    'type' => CONTEXTIO_INT,
     'flags' => [
       'answered' => CONTEXTIO_BOOL,
       'deleted' => CONTEXTIO_BOOL,
