Convert Type filter to Type constraint