Fix clobbered parts of switch from type coercion to ToXXX() methods in modular input parameters.