dios.cast_to_itype(series, itype, policy='lossless', err='raise', inplace=False)[source]

Cast a series (more explicit the type of the index) to fit the itype of a dios.

Return the casted series if successful, None otherwise.


This is very basic number-casting, so in most cases, information from the old index will be lost after the cast.