Check that all elements of a series are convertable to floats before casting individual elements.
Only create variables if we need them.
Merge pull request #367 from davidmiller/casting

Cast elements in a series consistently