public void ConvertArray() { Object[] objs = new Object[] { new GameObject(), new GameObject(), new GameObject() }; GameObject[] gameObjects = ObjectUtility.ConvertArray <GameObject>(objs); foreach (var gameObj in gameObjects) { Assert.IsNotNull(gameObj); Object.DestroyImmediate(gameObj); } }