Convert the char into integer if the fromType is union.