Raise type error for nil