No, the differences is that in Common Lisp / SBCL type declarations are optional (note though: there is also type inference in SBCL), type declaration are more verbose, type declarations are sometimes a separate expression and a variable by default has the type T, unless the compiler can infer another type.
(declaim (type (integer 0 100) *a-number*))
Above does not declare the type of a value, it declares the type of a variable to be an integer in the range of 0 to 100.
In SBCL we can also query for the type of that variable:
Another example: a function with two local variables. One variable is declared to be of type INTEGER and the other of type STRING. We then try to set one variable to the value of the other:
* (defun foo (a b)
(declare (type integer a)
(type string b))
(setf a b))
; in: DEFUN FOO
; (SETF A B)
; ==>
; (THE INTEGER B)
;
; caught WARNING:
; Derived type of COMMON-LISP-USER::B is
; (VALUES STRING &OPTIONAL),
; conflicting with its asserted type
; INTEGER.
; See also:
; The SBCL Manual, Node "Handling of Types"
;
What you see above is that the SBCL compiler a compile time detects a type error and warns. There are no values involved.
It does, and values have types but variables don't. Without the DECLAIM facility you can do the following:
Whereas in C# you cannot do the following: Thats all I meant.