Andrey Fedorov reported an unpleasant user experience when the image type is not supported by the filter[1].
The proposed solution to to create a dialog which prompts for casting of the image to a valid type supported by the filter.
[1] http://slicer-users.65878.n3.nabble.com/Question-problem-with-SimpleFilters-module-td4029685.html