Problem: Getting value of binary option is wrong. (Kent Sibilev) Solution: Fix type cast. Add a test.