$field->int()

Converts the field value into a proper integer

Example

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