public static bool IsErrorOfType(BikeObject bo, string errorType) { if (bo == null) return false; var prototype = ResolvePrototype(errorType); return prototype.IsPrototypeOf(bo).Value; }