Cast may also be messed up, so try to capture that error.