FlashcardBeginner

Type assertions

The as keyword tells the compiler to treat a value as a specific type.

Question

What is a type assertion using `as`?

Click to reveal answer