public static bool IsType2(this AnyObject i, Feature.FeatureType type) { if (i.GetType2() == type) { return(true); } return(false); }