Lamina.Cast (lamina v0.2.2)
A helpful library of casts.
Defining a cast function is brain-dead simple, however sometimes you just don't want to write the same thing over and over. Here is a helpful pile of functions for common configuration castings.
Feel free to open a PR to add more.
Link to this section Summary
Functions
Attempts to convert the inbound value into an float.
Attempts to convert the inbound value into an integer.
Link to this section Functions
Link to this function
to_float(value)
Specs
Attempts to convert the inbound value into an float.
Link to this function
to_integer(value)
Specs
Attempts to convert the inbound value into an integer.