change convert type method