def series64bitto32bit(s):
    if s.dtype == np.float64:
        return s.astype('float32')
    elif s.dtype == np.int64:
        return s.astype('int32')
    return s
Class signatures are identical so we can transparently use either.
dataset/ETHPy150Open UDST/urbansim/urbansim/utils/misc.py/series64bitto32bit--crossover with--dataset/ETHPy150Open psychomario/PyPXE/pypxe/nbd/writes.py/write