You just need to add a cast to let the compiler know what you are doing -
- (void)collectionView:(UICollectionView *)collectionView didHighlightItemAtIndexPath:(NSIndexPath *)indexPath;{
SPCell *cell = (SPCell *)[self.collectionView cellForItemAtIndexPath:indexPath];
cell.thumbnail.alpha=0.6;
}