GetDynamicValueFromPayload

Helper function for retrieving the dynamic payload of a particle.