diff --git a/nodequeue.module b/nodequeue.module
index 312e02d..1a5a784 100644
--- a/nodequeue.module
+++ b/nodequeue.module
@@ -605,7 +605,7 @@ function nodequeue_load_queues($qids = array(), $bypass_cache = FALSE) {
 
   foreach ($qids as $qid) {
     if ($bypass_cache || !isset($cache[$qid])) {
-      $to_load[] = $qid;
+      $to_load[] = (int)$qid;
     }
   }
 
