When a variable is typecasted and clearly is a positive int, psalm thinks it's generic int: https://psalm.dev/r/c1e0a9efd4