Fix the returned type of the parse method