pub unsafe fn chart_get_point_count(obj: *const Object) -> Result<u32>
This function is unsafe because it may dereference raw pointers.