fn to(self: Managed, comptime T: type) ConvertError!T

Convert self to type T.

Returns an error if self cannot be narrowed into the requested type without truncation.

Parameters

self: Managed,
T: type,