authvar: fix the type cast for 32bit systems

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>