# help converting JuMPArray to regular array

**URL:** https://discourse.julialang.org/t/help-converting-jumparray-to-regular-array/21924
**Category:** Optimization (Mathematical)
**Created:** [March 15, 2019, 7:17pm UTC](https://discourse.julialang.org/t/help-converting-jumparray-to-regular-array/21924 "2019-03-15T19:17:17Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [March 16, 2019, 7:25pm UTC](https://discourse.julialang.org/t/help-converting-jumparray-to-regular-array/21924/2 "2019-03-16T19:25:24Z")

</div>

Hi @levip,

Welcome to JuMP!

This isn’t really supported, since if you convert it you will lose the indices. As a work around, you can either access the underlying data (`xx.data` Note: this is an internal feature, so it may break at any point!).

A better approach is to just use the JuMPArray as much as possible. If you want to write it to CSV, you can always build an array manually.

```julia
I, J, K = axes(xx)
[xx[i,j,k] for i in I, j in J, k in K]

```

Good luck using JuMP!

p.s. in the future, it’s easier to help if you follow

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/help-converting-jumparray-to-regular-array/21924)._
