Made cast error message properly informative.