Fix layered array casting as failed before
Fix layered array casting as failed before

njam/CM,njam/CM,njam/CM,njam/CM,tomaszdurka/CM,cargomedia/CM,njam/CM,fauvel/CM,cargomedia/CM,vogdb/cm,tomaszdurka/CM,vogdb/cm,fauvel/CM,tomaszdurka/CM,vogdb/cm,fauvel/CM,tomaszdurka/CM,vogdb/cm,cargomedia/CM,fauvel/CM,vogdb/cm,tomaszdurka/CM,cargomedia/CM,fauvel/CM