[v6r10] FIX: Cast to int before creating cert