Constrains arguments of encrypt/decrypt functions to their expected types to avoid errors when encrypting and decrypting data