public static function validationCastFunction($type)
    {
        switch ($type) {
            case Property::DATA_TYPE_FLOAT:
                return 'floatval';
                break;

            case Property::DATA_TYPE_BOOLEAN:
                return 'boolval';
                break;

            case Property::DATA_TYPE_INTEGER:
                return 'intval';
                break;

            case Property::DATA_TYPE_STRING:
            case Property::DATA_TYPE_TEXT:
            case self::DATA_TYPE_INVARIANT_STRING:
                return 'strval';
                break;

            default:
                return null;
        }
    }