Revert previous fixes for double optional, remove optional added by get type filter instead. Because the optional is not required when casting with as? this caused a build error when the declared type was not a double-optional.
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
What does this PR do?
Revert previous fixes for double optional, remove optional added by get type filter instead. Because the optional is not required when casting with
as?
this caused a build error when the declared type was not a double-optional.Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)