Removed redundant cast in try_parse()