Should be a switch with proper handling for default (ie. invalid Type).