cast integral type to pointer type