Tests for type conversions