I'd almost be inclined to use a simple string error message, something like "output cannot be safely cast to out dtype".