I've got the following code that pulls data from an ALAssetRepresentation.
ALAssetRepresentation *representation = ...;
size_t size = [representation size]; // 'size' returns a long long
uint8_t *bytes = malloc(size);
When building for 32-bit devices on iOS, I get the following warning.

Blindly casting the long long to a size_t works, but I don't know what the "right" way to handle this situation is. Would love to know how to best handle it.
Since you are assigning to a type of
size_t, cast the result as asize_t.The only risk of this is that
representation sizecould be a number larger than what will fit in asize_t. But if that happens, the value is too large to allocate memory for it anyway when running on an iOS device so that is a bigger problem than the loss in precision.