Tests for type conversions.