/**
  * @return MultiRecordUploadField
  */
 public static function cast(UploadField $field)
 {
     $castCopy = MultiRecordUploadField::create($field->getName(), $field->Title());
     foreach (get_object_vars($field) as $property => $value) {
         $castCopy->{$property} = $value;
     }
     return $castCopy;
 }