emit casts around calls on functions with multiple signatures