I'm trying to get the associated products using the method
$p->getTypeInstance(true)->getConfigurableAttributesAsArray($p) which results in an array like this:
Array (  => Array ( [id] => 13 [label] => Size [use_default] => 0 [position] => 0 [values] => Array (  => Array ( [product_super_attribute_id] => 13 [value_index] => 7 [label] => S [default_label] => S [store_label] => S [is_percent] => 0 [pricing_value] => [use_default_value] => 1 ) [...]
What I'm trying to get is the product that's representing
[value_index] => 7 which is an associated simple product.