Use type id getter instead of accessing object manually
Replace casts in context.c
Replace casts in compositor/cursor.c
Replace casts in compositor/keyboard.c
Replace casts in compositor/framebuffer_device.c
Replace casts in compositor/module.c
Replace casts in compositor/monitor.c
Replace casts in compositor/buffer/egl.c
Replace casts in compositor/buffer/frame.c
Replace casts in compositor/monitor_mode.c
Replace casts in compositor/wayland/abstract_shell_surface.c
Replace casts in compositor/wayland/client.c
Replace casts in compositor/wayland/compositor.c
Replace casts in compositor/wayland/pointer.c
Replace casts in compositor/wayland/region.c
Replace casts in compositor/wayland/surface.c
Replace casts in action/manager.c
Replace casts in command/logical.c
Replace casts in command/object.c
Replace casts in command/string.c