Get rid of type checking while dealing with channel assignment