Describe the Warning
We are currently updating our extension to BC16 in the ${CodeCop} declared under code analyzer it is showing multiple warnings. Below is one "AL0603 An implicit conversion is being performed from a value of type 'Option' to a value of type 'Enum'
To Reproduce
Steps to reproduce the behavior:
- AL Language extension is installed (5.0.254558)
- Create a page extension of "Purchase Line" (39)
- In the table list there is a field "Type" which is now a "Enum" data type
- Previously we are inserting data from option and it was working fine. now it showing this warning.
Screenshot

Versions:
AL Language 5.0.254558
Business Central : 16.0.11209.0 (Preview)
Can we ask what is the best practice to eliminate the warning? thanks
Describe the Warning
We are currently updating our extension to BC16 in the ${CodeCop} declared under code analyzer it is showing multiple warnings. Below is one "AL0603 An implicit conversion is being performed from a value of type 'Option' to a value of type 'Enum'
To Reproduce
Steps to reproduce the behavior:
Screenshot

Versions:
AL Language 5.0.254558
Business Central : 16.0.11209.0 (Preview)
Can we ask what is the best practice to eliminate the warning? thanks