 
 	addProperty: (property)->
 		if not (property instanceof cola.Property)
-			if typeof property == "string"
+			if typeof property is "string"
 				property = new cola.Property(property: property)
 			else
 				property = new cola.Property(property)

	parse: (text)->
		if not text then return 0

		if typeof text == "number"
			if @_isInteger
				return Math.round(text)
			else

class cola.BooleanDataType extends cola.BaseDataType
	parse: (text)->
		if not text then return false
		if typeof text is "boolean" then return text
		if ["TRUE", "ON", "YES", "Y", "1", "T"].indexOf((text + "").toUpperCase()) > -1 then return true
		return false

class cola.DateDataType extends cola.BaseDataType
