diff --git a/resources/node_resource.inc b/resources/node_resource.inc
index 934b272..d13891d 100644
--- a/resources/node_resource.inc
+++ b/resources/node_resource.inc
@@ -184,7 +184,7 @@ function _node_resource_definition() {
  * @see node_load()
  */
 function _node_resource_retrieve($nid) {
-  $node = node_load($nid);
+  $node = node_load((int)$nid);
 
   if ($node) {
     $uri = entity_uri('node', $node);
@@ -374,7 +374,7 @@ function _node_resource_access($op = 'view', $args = array()) {
   }
 
   if ($op != 'create' && !empty($args)) {
-    $node = node_load($args[0]->nid);
+    $node = node_load((int)$args[0]->nid);
   }
   elseif ($op == 'create') {
     if (isset($args[0]->type)) {
@@ -405,7 +405,7 @@ function _node_resource_access($op = 'view', $args = array()) {
  */
 function _node_resource_load_node_files($nid, $include_file_contents = TRUE) {
   module_load_include('inc', 'services', 'resources/file_resource');
-  $node = node_load($nid);
+  $node = node_load((int)$nid);
 
   // Hopefully theres another way to get a nodes fields that are a file, but this was the only way I could do it.
   $fields = field_info_fields();
