It doesn't work this way actually because item is of CGUIListItemPtr type, which sould be casted to CFileItem to get epg info.
The only alternative to the cast is to create fileItem explicitly and get the tag from it, e.g.:
<code>CFileItemPtr fileItem(new CFileItem(*item));</code>
or
<code>CFileItemPtr fileItem(new CFileItem(item.get()));</code>
and then
<code>fileItem->GetEPGInfoTag()->GenreType()</code>