I want to filter x.EarningReports.BasicAverageShares  > 100000

but converting to a number fail. What kind of result is giving?

 ----- Also is there a field to get the marketcap?

def CoarseSelectionFunction(self, coarse):
        filtered_coarse = [x for x in coarse if x.HasFundamentalData and x.Volume > self.minVolume and x.Price > self.minPrice]
        return [i.Symbol for i in filtered_coarse]

    def FineSelectionFunction(self, fine):
        filtered_fine = [x for x in fine if (x.EarningReports.BasicAverageShares and not (x.EarningReports.BasicAverageShares is None) ) ]
        filtered_fine2 = [x for x in filtered_fine if float( x.EarningReports.BasicAverageShares) > 100000 ]
        return [i.Symbol for i in filtered_fine2]