Convert empty strings to nil by default; implement Symbol casting