Differentiate null values in Variant Data type

vgautam
New Contributor III

Hello, 

Based on the documentation here, in both scenarios below try_variant_get returns a null: 

  • If the object cannot be found
  • if the object cannot be cast 

How does one differentiate between the two scenarios?