convert the warning type