<?php gmp_init(int|string $num, int $base = 0): GMP
<?php $model = CustomCasts::create([ 'address' => new AddressModel('address_line_one_value', 'address_line_two_value'), 'amount' => gmp_init('1000', 10), 'string_field' => null, ]);
<?php $another_model = CustomCasts::create([ 'address_line_one' => 'address_line_one_value', 'address_line_two' => 'address_line_two_value', 'amount' => gmp_init('500', 10), 'string_field' => 'string_value', ]);
<?php $model = CustomCasts::create([ 'address' => new AddressModel('address_line_one_value', 'address_line_two_value'), 'amount' => gmp_init('1000', 10), 'string_field' => 'string_value', ]);
<?php public function get($model, $key, $value, $attributes) { return gmp_init($value, 10); }