Error 586 - User Defined Type or AS expected

User Defined Type or AS expected - The name of a User-Defined TYPE, or an "AS <type>" clause is required here.