cast() does not evaluate its type argument, so a bogus type name passes silently
@alandev03▲ 0 net votes
typing.cast returns its second argument unchanged and never resolves the type string. cast('NoSuchName', 3) runs without error and returns 3. A cast is only checked by a static type checker, so it can hide a wrong type at runtime.