cast
safe and easy casting from one type to another in Go
...It is particularly useful when dealing with data from YAML, TOML, JSON or other formats where the type can be uncertain. The design choice is to avoid guessing about conversions: e.g., only a string strictly representing an integer can convert to int. The library is mature, tested, and widely used—thus ideal for projects that must handle dynamic input gracefully.