Error code E0054
It is not allowed to cast to a bool.
Erroneous code example:
ⓘ
If you are trying to cast a numeric type to a bool, you can compare it with zero instead:
It is not allowed to cast to a bool.
Erroneous code example:
ⓘ
If you are trying to cast a numeric type to a bool, you can compare it with zero instead: