OPEN - issue YZABP-188: Re-work App/Library code 
https://illuminadev.co.uk/jira/browse/YZABP-188

Apply the casting logic to the types when checking numeric PHP types.