Force cast to short before using for htons (to swap order).