errors.fyi community error code reference
E0054
rust

Cast to Bool

An attempt was made to cast a numeric type to bool using the as operator, which Rust does not permit. Use a comparison expression such as x != 0 to convert a number to a boolean.

References

โ† all namespaces for E0054