Fixed toNumber<T> for big-endian systems.