Method Pike.soft_cast()


Method soft_cast

type|zero soft_cast(type to, type from)

Description

Return the resulting type from a soft cast of from to to.

Returns

Returns UNDEFINED if the cast is invalid.

Note

The return value for the invalid case may in the future change to __unknown__.