def as_sql(self, compiler, connection):
sql, params = super(DecryptedCol, self).as_sql(compiler, connection)<EOL>sql = self.target.get_decrypt_sql(connection) % (sql, self.target.get_cast_sql())<EOL>return sql, params<EOL>
Build SQL with decryption and casting.