Type conversion functions
Usage:
toUInt8(<expression>)
Converts any numeric expression, or expression resulting in a string representation of a decimal, into an unsigned 8 bit integer.
Behaviour for negative numbers is undefined.
Usage:
toUInt32(<expression>)
Converts any numeric expression, or expression resulting in a string representation of a decimal, into an unsigned 32 bit integer.
Behaviour for negative numbers is undefined.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-