ape: Use the proper variable type