Fixed "IEntity unaccessible" & "conversion" warnings
Merge pull request #329 from balint42/fix_warnings2

Fixed "IEntity unaccessible" & "conversion" warnings