Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

Downcasts FromType to ToType - for types where conversion may fail. If done for wrong types would cause a compiler panic at the Sierra stage.

Signature

pub extern fn downcast(x: FromType) -> Option implicits(RangeCheck) nopanic;