Convert a variable to a given type by name

type:to_another_type_by_name($variable, STRING $to_type_name)

type:to_another_type_by_name('1','int')
#=> 1

type:to_another_type_by_name('1','float')
#=> 1.0

Copyright ©2013-2022 SunSed®. All rights reserved.