Conversions between channels and io types