Made type conversion more convenient in some cases.