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