Is `foo as? Foo` a complete equivalent of `foo as Foo?` in kotlin?

Viewed 163

Is foo as? Foo a complete equivalent of foo as Foo? ?

If yes then why have both?

If no then what's the difference?

1 Answers
Related