public static TWrapper WrapAs <TWrapper>(this IHandle <Type> handle) where TWrapper : Type { if (handle.GetInternalPointer() == IntPtr.Zero) { return(null); } return((TWrapper)handle.ToWrapperType()); }