Implicit cast runtime error check