Minor code improvements.

Item 2 - Added another variant for sum.
Item 6 - Removed the cast and provided explicit type which looks much cleaner.
Item 10 - Improved LINQ sample. Removed the cast and provided explicit type which looks much cleaner.