carray.storage = o;
carray.managed = false;
}
else if (nqpobj instanceof org.perl6.nqp.sixmodel.reprs.CStructInstance) {
Class<?> structClass = ((CStructREPRData)target_type.st.REPRData).structureClass;
CStructInstance cstruct = (CStructInstance)nqpobj;
cstruct.storage = Structure.newInstance(structClass, o);
}
else {
throw ExceptionHandling.dieInternal(tc,
String.format("Don't know how to cast to %s", nqpobj));