pass for

if something passes for another thing it looks almost the same

Examples

Jack was so skinny with his long hair he could have passed for a girl.