E3043 Types Errors

Types

cannot cast between incompatible types; only numeric, enum, and string conversions are allowed

When this occurs

This error is triggered when: cannot cast between incompatible types; only numeric, enum, and string conversions are allowed

Example error message

error[E3043]: cannot cast between incompatible types; only numeric, enum, and string conversions are allowed

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.