Make sure that the strategy
variable has the generics type information, too.
The following will cause this warning:
FindingStrategy strategy;
while this should be fine:
FindingStrategy<SomeObject> strategy;
you shouldn't even need the cast then.