Skip to content

Feature: Introduce a dynamic cast language feature #3

@Lamparter

Description

@Lamparter

The dynamic cast language feature would allow you to dynamically cast from one type to another, no questions asked.

{
    int integer = 3;
    string text = integer; // no questions asked
}

If the types fail to cast, you will get an exception at runtime.
This is compatible with Native AOT and does not use Reflection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions