Convert short array to long array