diff --git a/src/Symfony/Component/Form/Form.php b/src/Symfony/Component/Form/Form.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Component/Form/Form.php
+++ b/src/Symfony/Component/Form/Form.php
@@ -201,7 +201,7 @@ class Form extends Field implements \IteratorAggregate, FormInterface
 
         $this->extraFields = array();
 
-        foreach ($data as $name => $value) {
+        foreach ((array)$data as $name => $value) {
             if (!$this->has($name)) {
                 $this->extraFields[] = $name;
             }
[Form] Fixed failing choice field tests