SyntaxFix
Write A Post
Hire A Developer
Questions
This is by design. You can cast null to any reference type. Otherwise you wouldn't be able to assign it to reference variables.
null