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