Explicitly cast orientation to uint32.