Get type from default value