fn cast(comptime DestType: type, target: anytype) DestType

Given a type and value, cast the value to the type as c would.

Parameters

DestType: type,
target: anytype,