do not generate multi-type abstract to-casts (closes #2917)