Fcr fix iqp illegal cast to poly

we were thinking so...there was a discussion and @elahrvivaz had a good link for it