Checks if the given type matches the given preferences.
Type to match.
Optional
Preferences to match against.
Checks if the given type matches the given preferences.