             not:        _not
           }
         equals: (value) ->
+          value = String value
           {
             type:       'equals'
             attribute:  name
             value:      value
-            test:       (test) -> test == value
+            test:       (test) -> String(test) == value
             not:        _not
           }
         lessThan: (value) ->
+          value = Number value
           {
             attribute:  name
             value:      value
-            test:       (test) -> test < value
+            test:       (test) -> Number(test) < value
             not:        _not
           }
         lessThanOrEquals: (value) ->
+          value = Number value
           {
             attribute:  name
             value:      value
-            test:       (test) -> test <= value
+            test:       (test) -> Number(test) <= value
             not:        _not
           }
         greaterThan: (value) ->
+          value = Number value
           {
             attribute:  name
             value:      value
-            test:       (test) -> test > value
+            test:       (test) -> Number(test) > value
             not:        _not
           }
         greaterThanOrEquals: (value) ->
+          value = Number value
           {
             attribute:  name
             value:      value
-            test:       (test) -> test >= value
+            test:       (test) -> Number(test) >= value
             not:        _not
           }
       }

      @_creating = true
      @_attributes = {}
      for attribute, details of @_class._attributes
        if @_class._attributes.hasOwnProperty(attribute) && !details.virtual
          @[attribute](
            if data[attribute]?
              data[attribute]
            else
              details.default
          )
    
      if @_class._manyBinds
        for binding in @_class._manyBinds

        return unless data && data.uuid
        return if ST.Model._byUuid[data.uuid]
        @createWithData data
    
    @classMethod 'master', ->
      @_master ||= ST.List.create()
    
    @classMethod 'index', (attribute) ->
      @_indexes ||= {}
      @_indexes[attribute] ||= ST.Model.Index.createWithModelAttribute(this, attribute)
