moved numeric assertions to after numeric cast.