kmsmultichannelcontroller: Create a generic conversion macro

Change-Id: I8cf3d253c57aedb479b5fd6fe317d9b4ae83bb40