Use .Cast<>() to fix support in .NET 3.5
Merge pull request #134 from MikeOsborn/master

Use .Cast<>() to fix support in .NET 3.5