Skip to content

Type Casting

All runtime values inherit the transmute ritual via the universal materia receiver. Provide a glyph describing the destination type and AbySS performs the conversion in place.

forge x: arcana = 3.14.transmute(arcana);
  • .transmute(arcana) converts the left-hand value to the arcana rune.
  • Because materia exposes the dispatcher, you can call .transmute(...) on any value without manual pattern matching.
  • glyph arguments work like type handles, letting APIs request conversions without constructing temporary instances.

Use casts sparingly—most code reads best when values are forged with the type you ultimately need.