Conversion has wrong type

When a complete expression has the wrong type for the context in which it's used, an implicit conversion is attempted:

  • as boolean when used in x-relevant-when statements
  • as string for most other contexts

If the conversion exists, but doesn't return the expected type, you get this error.