Reducing the number of branches using type coercition.