Using Resources.LoadAll with arrays

I seem to be having problems with loading a folder of images into an array.
Here is the related code:

using UnityEngine;
using System.Collections;

public class AnimateImageOnPlane : MonoBehaviour
{
 
 private Object[] frames; 
 private float framesPerSecond = 30.0f;
 private Texture holder;
 
 void Start()
 {
 frames = Resources.LoadAll("Textures/Social", typeof(Texture));
 Debug.Log("Frame Length: " + frames.Length);
 }
 
 void Update () 
 {
 if(frames.Length > 0)
 {
     int index = (int)(Time.time * framesPerSecond);
 
     index = index % frames.Length;
 if(index < frames.Length)
 {
 holder = frames[index] as Texture;
     gameObject.renderer.materials[0].mainTexture = holder;
 }
 }
 }

I think your problem is that you need to specify the type as Texture2D rather than texture.