core: Convert FP ports to ints [GH-2173]