CastExp

The type cast operator, cast(T) x

It's possible to cast to one type while painting to another type

https://dlang.org/spec/expression.html#cast_expressions

extern (C++) final
class CastExp : UnaExp {
Type to;
ubyte mod;
}

Inherited Members

From UnaExp

incompatibleTypes
Expression incompatibleTypes()

The type for a unary expression is incompatible. Print error message.

setNoderefOperand
void setNoderefOperand()

Mark the operand as will never be dereferenced, which is useful info for @safe checks. Do before semantic() on operands rewrites them.

Meta