--- title: "Typecasting Expressions" slug: "typecasting-expressions" updated: 2024-10-21T14:40:23Z published: 2024-10-21T14:40:23Z canonical: "support.tulip.co/typecasting-expressions" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 타입 캐스팅 표현식 *표현식 편집기를 사용하여 데이터 유형을 변경하는 방법을 알아보세요.* 타입 캐스팅은 다른 메서드나 컨텍스트에서 데이터를 사용하기 위해 데이터 유형을 다른 데이터 유형으로 변환하는 방법입니다. 트리거에서 표현식 편집기를 사용하여 Tulip에서 데이터를 타입캐스트할 수 있습니다. --- ## 텍스트 변환 **texttoboolean()은**텍스트를 부울로 구문 분석합니다. "y", "yes", "t", "true", "on"(및 모든 대문자 변형)은 참으로 인식되고 "n", "no", "f", "false", "off"는 거짓으로 인식됩니다. ![texttoboolean expression](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoboolean%20expression.png) 아래 예제에서 왼쪽의 각 텍스트 변수는 오른쪽에서 부울로 변환됩니다. ![texttoboolean expression in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoboolean%20expression%20in%20app.png) **texttodatetime()**은 주어진 텍스트 데이터 유형을 Datetime 데이터 유형으로 변경합니다. 참고: 이 표현식의 경우 표현식에 표준 시간대를 포함해야 합니다. 지원되는 표준 시간대 목록은 [이 웹사이트를](https://www.php.net/manual/en/timezones.php) 참조하세요. ![texttodatetime expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttodatetime%20expression%20ex.png) ![texttodatetime expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttodatetime%20expression%20ex%20in%20app.png) **texttofile()**은 텍스트를 파일로 변환합니다. ![texttofile expressions ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttofile%20expressions%20ex.png) **texttoimageurl()**텍스트를 이미지 URL로 변환합니다. ![texttoimageurl expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttoimageurl%20expression%20ex.png) ![texttofile and imageurl expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttofile%20and%20imageurl%20expression%20ex%20in%20app.gif) **texttointeger()**텍스트를 정수로 파싱합니다. ![texttointeger expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttointeger%20expression%20ex.png) **texttonumber()**는 텍스트 또는 타임스탬프를 숫자로 파싱합니다. ![texttonumber expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/texttonumber%20expression%20ex.png) ## 텍스트로 변환 **datetimetotext()**는 주어진 날짜/시간 데이터 유형을 텍스트 데이터 유형으로 변경합니다. ![datetimetotext expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expression%20ex.png) ![datetimetotext expressions ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expressions%20ex%20in%20app.png) **filetotext()**는 파일을 텍스트로 변환합니다. ![filetotext expressions ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/filetotext%20expressions%20ex.png) ![filetotext expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/filetotext%20expression%20ex%20in%20app.png) **totext()**는 무엇이든 텍스트로 구문 분석합니다. ## 기타 타입 캐스팅 표현식 **badge_id_to_user()**배지 ID를 사용자 객체로 변환합니다. ![badge_id_to_user expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/badge_id_to_user%20expression%20ex.png) ![badge_id_to_user expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/badge_id_to_user%20expression%20ex%20in%20app.png) **int_to_hex()는**주어진 숫자의 16진수 표현을 반환합니다. ![int_to_hex expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex.png) ![int_to_hex expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex%20in%20app.png) **hex_to_int()는**주어진 16진수 문자열의 숫자 표현을 반환합니다. ![hex_to_int expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/hex_to_int%20expression%20ex.png) ![hex_to_int expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/hex_to_int%20expression%20ex%20in%20app.png) **interval_to_seconds()**는 간격의 길이를 초 단위로 반환합니다. ![int_to_hex expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex.png) ![int_to_hex expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/int_to_hex%20expression%20ex%20in%20app.png) **interval_to_seconds()**는 간격의 길이를 초 단위로 반환합니다. ![seconds_to_interval expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/seconds_to_interval%20expression%20ex.png) **seconds_to_interval()**초를 인터벌로 변환합니다. ![interval_to_seconds expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/interval_to_seconds%20expression%20ex.png) ![intervals and seconds expressions ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/intervals%20and%20seconds%20expressions%20ex%20in%20app.gif) **user_id_to_user()**는 사용자 ID를 사용자 객체로 변환합니다. ![user_id_to_user expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/user_id_to_user%20expression%20ex.png) ![user_id_to_user expression ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/user_id_to_user%20expression%20ex%20in%20app.png) --- 원하는 것을 찾았나요? [community.tulip.co로](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all) 이동하여 질문을 게시하거나 다른 사람들이 비슷한 질문을 했는지 확인할 수도 있습니다!