$field->int()

Converts the field value into a proper integer

  • return (integer)

Example

<?php echo $page->mynumber()->int() ?>