Add unit type to preferences and do the convert