eal: explicit cast of core id when getting index