Trying to create cast_type lookup for base adapter