Expressions that cannot be type cast are considered invalid.
Merge pull request #37 from robworley/invalid-values-before-type-cast

Consider expressions that cannot be type cast to be invalid