diff --git a/lib/formtastic/inputs/boolean_input.rb b/lib/formtastic/inputs/boolean_input.rb
index <HASH>..<HASH> 100644
--- a/lib/formtastic/inputs/boolean_input.rb
+++ b/lib/formtastic/inputs/boolean_input.rb
@@ -102,7 +102,9 @@ module Formtastic
           value
         when NilClass
           false
-        when Integer, String
+        when Integer
+          value == checked_value.to_i
+        when String
           value == checked_value
         when Array
           value.include?(checked_value)
fix bug by ensuring we're comparing Integers