* @param typecode Datatype of the array
     * @return The new multiarray
     */
    public static PyMultiarray array(final PyObject seq, final char typecode) {
        if (seq instanceof PyMultiarray) {
            final PyMultiarray a = (PyMultiarray) seq;
            final PyMultiarray b = PyMultiarray.zeros(
                    a.dimensions,
                    (typecode == '\0') ? a._typecode : typecode);
            PyMultiarray.copyAToB(a, b);
            return b;
        }
        if (seq instanceof PyArray) {
            final PyArray copyOfSeq = (PyArray) seq.__getslice__(
                    Py.None,
                    Py.None,
                    Py.None);
            return PyMultiarray.arrayToMultiarray(copyOfSeq, typecode);
        }
        return PyMultiarray.seqToMultiarray(seq, typecode);
    }