I'm getting errors without the casts, because the function takes float** but technically distancesToChildren is a float[8]*