public int IndexOf(object item) { if (item is BaseObject) { item = (item as BaseObject).Ptr; } return (int)InvokeV8Method("IndexOf", item); }