Handling an empty value while down casting System.User objects

4
I'm down casting a System.User object to inheriting classes. Why do I have to handle the empty value in the inheritance split?
asked
1 answers
4

Because the object can be null (empty). If you retrieve the System.User with username = "harry" it's possible that the object / retrieve activity return empty object (null). So when casting you have to handle the empty option.

answered