In this blog post, you’ll learn more about the Sybase Error TREAT AS can only be used with extended types. Cannot treat %1 as a %2. and the reason for receiving this error
Sybase SQL Error Message
TREAT AS can only be used with extended types. Cannot treat %1 as a %2.
Reason for this Error
An error occurred while trying to treat a value as another data type.