diff --git a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java
index 53bb9223123738459501f2511f9980d4fe45d723..6d54a0f742a9b5abff880e20d0d5326f8940d13a 100644
--- a/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java
+++ b/com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RForeignDoubleWrapper.java
@@ -73,7 +73,7 @@ public final class RForeignDoubleWrapper extends RForeignWrapper implements RAbs
     private static double checkIsNull(Object value, ClassCastException e) throws RuntimeException {
         if (value instanceof TruffleObject) {
             if (ForeignAccess.sendIsNull(IS_NULL, (TruffleObject) value)) {
-                return RRuntime.INT_NA;
+                return RRuntime.DOUBLE_NA;
             }
         }
         throw RInternalError.shouldNotReachHere(e);