Cast
A helper class to provide easier ways to cast.
Changelog #
Changelog
Version |
Description |
4.7.0 |
Introduced. |
Methods #
-
to_bool
— Casts a value to a bool if possible or returns an empty string.
-
to_float
— Casts a value to a float if possible or returns an empty string.
-
to_int
— Casts a value to a int if possible or returns an empty string.
-
to_string
— Casts a value to a string if possible or returns an empty string.