An implicit conversion in an expression expanding a type may be harmless. But the warning provides a mechanism for discovering unintended conversions.
Add an explicit cast if it is intentional to silence the issue.
logic [1:0] a; int b = a;
logic [1:0] a; int b = int'(a);