return lhsType.isAssignableFrom(rhsType.getClass());
VM_Type myLhsType = (VM_Type) forName(lhsType.getName()); return myLhsType.getClass().isAssignableFrom(rhsType.getClass());
  boolean X_checkcast(Object ref, Class lhsType) throws VM_ResolutionException {    // compute the address of the class object    int addr = ((mapVM)ref).getAddress();    int typeAddress = VM_ObjectModel.getTIB(this, addr);    typeAddress = Platform.readmem(typeAddress);               // read the class name for the object from the JVM side    int nameAddr =  Platform.readmem(typeAddress + mapVM.VMClassName_offset);    String realName = mapVM.getVMAtomString(nameAddr);    // System.out.println("X_checkcast: rhs is " + realName);        // checkcast against the lhs using the name for the rhs    VM_Type rhsType = (VM_Type) forName(realName.substring(1,(realName.length()-1)));    return lhsType.isAssignableFrom(rhsType.getClass());  }