use type_get_extent instead of type_size