char array to int array
<p>I'm trying to convert a string to an array of integers so I could then perform math operations on them. I'm having trouble with the following bit of code:</p>

<pre><code>    String raw = "1233983543587325318";

    char[] list = new char[raw.length()];
    list = raw.toCharArray();
    int[] num = new int[raw.length()];

    for (int i = 0; i &lt; raw.length(); i++){
        num[i] = (int[])list[i];
    }

    System.out.println(num);
</code></pre>

<p>This is giving me an "inconvertible types" error, required: int[] found: char
I have also tried some other ways like Character.getNumericValue and just assigning it directly, without any modification. In those situations, it always outputs the same garbage "[I@41ed8741", no matter what method of conversion I use or (!) what the value of the string actually is. Does it have something to do with unicode conversion?</p>

<p>Any help would be appreciated, including shortcuts or other workarounds to my method.</p>

<p>Edit: Thanks everyone for the responses</p>
