RF: changed the typedef
RF: fixed the recasting utility
RF: fixed the recasting utility