Type.PConvertTo protocol (etl_core v0.1.55)

Protocol oriented to the definition of the function to convert from one data type to another

Summary

Functions

Converts a value to the equivalent of the defined type

Types

@type t() :: term()

Functions

Link to this function

convert_to(x, type)

@spec convert_to(t(), atom()) :: any()

Converts a value to the equivalent of the defined type

Parameters:

-x:t(). Value.

- type: Atom. Data type to convert.

Return:

- type()