Convert to short array