I think it will reasonable to add a switch ...
I agree that's probably easiest.
It is also desirable to add new setting to interpret singed integers and long signed \unsigned ones.
I already have modified code for this. It can support int8, int16, uint8 & unit16.
Is there a need for int32 & uint32? This will require more code changes to support.