typecases