if (warn) check(value.toInt(), msg);
if (warn) check(value, msg);
  private static Word getWordValue(Object addr, String msg, boolean warn) {    if (addr == null) return Word.zero();    Word value = Word.zero();    if (addr instanceof Address) {      value = ((Address)addr).toWord();    } else if (addr instanceof ObjectReference) {      value = ((ObjectReference)addr).toAddress().toWord();    } else if (addr instanceof Word) {      value = (Word)addr;    } else if (addr instanceof Extent) {      value = ((Extent)addr).toWord();    } else if (addr instanceof Offset) {      value = ((Offset)addr).toWord();    } else {      VM.sysWriteln("Unhandled supposed address value: " + addr);      VM.sysFail("incomplete boot image support");    }    if (warn) check(value.toInt(), msg);    return value;  }