Ruby runtime = context.getRuntime();
JavaClass targetType = getTargetType(context, runtime, type);
return targetType.javaArrayFromRubyArray(context, fromArray);
}
private static JavaClass getTargetType(ThreadContext context, Ruby runtime, IRubyObject type) {
JavaClass targetType;