Fix int to short cast in toShort().