fn to(self: Const, 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: Const,
T: type,