Replies: 1 comment 2 replies
-
You can check the type via functions like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application that does not have exceptions enabled. How can I test whether a type is convertible without raising an exception? For example:
How can I test
get("string")
is convertible tob
s type (bool in this case)?I've poked around and realized that I can use the
.is_*()
methods for basic types but objects and arrays are much more complicated. I'm hoping to find a general-ish solution if possible.Thanks for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions