quartz: Use StdMemAllocator_from_IMemAllocator() instead of casts.