diff --git FeedsYoutubeParser.inc FeedsYoutubeParser.inc
index edcbdf1..8aab65f 100644
--- FeedsYoutubeParser.inc
+++ FeedsYoutubeParser.inc
@@ -251,12 +251,12 @@ class FeedsYoutubeParser extends FeedsParser {
         'title' => (string) $media->group->title,
         'author' => (string) $entry->author->name,
         'description' => (string) $media->group->description,
-        'thumbnail' => $thumbnail,
+        'thumbnail' => (string) $thumbnail,
         'category' => (string) $media->group->category,
         'tags' => explode(',', $media->group->keywords),
         'embedded_player' => '',
         'duration' => $this->secsToTime($length),
-        'duration_raw' => $length,
+        'duration_raw' => (integer) $length,
         'view_count' => (string) $viewCount,
         'fav_count' => (string) $viewCount,
         'rating' => (string) $rating,
@@ -336,15 +336,15 @@ class FeedsYoutubeParser extends FeedsParser {
         'title' => html_entity_decode((string) $media->group->title),
         'author' => (string) $entry->author,
         'description' => html_entity_decode((string) $media->group->description),
-        'thumbnail' => $thumbnail,
+        'thumbnail' => (string) $thumbnail,
         'category' => (string) $media->group->category,
         'tags' => explode(',', (string) $media->group->keywords),
         'embedded_player' => $player,
         'duration' => $this->secsToTime($length),
-        'duration_raw' => $length,
-        'view_count' => $viewCount,
-        'fav_count' => $favCount,
-        'rating' => $rating,
+        'duration_raw' => (integer) $length,
+        'view_count' => (string) $viewCount,
+        'fav_count' => (string) $favCount,
+        'rating' => (string) $rating,
         'updated_datetime' => date('Y-m-d H:i:s', strtotime($updated)),
         'updated_timestamp' => strtotime($updated),
         'published_datetime' => date('Y-m-d H:i:s', strtotime($entry->pubDate)),
