The filling has always been fully cooked for me by the time the pastry turns golden brown. You can double check that the filling is cooked through by inserting an instant read thermometer into the center of the filling. It should read at least 165F.