Just use the correct format specifier instead of doing a cast