$field->int()

Converts the field value into a proper integer

  • return (integer)

Example

<?= $page->mynumber()->int() ?>