If you were aware of your caste restrictions... and he was aware of his caste restrictions... one has to wonder... did he mean to lead you on? If he didn't mean to... then he needs to be more careful. Infatuation and love does not pay attention to caste restrictions (or much of anything for that matter).
In regards to your customs... it would be best for you and your heart especially if you focus more on those who are available within your own caste. Eventually your heart will find someone you like.
In the meantime... you may need to talk with him less... or if it hurts too much to do so... don't talk with him at all. This won't stop the hurt... but it will help you to get over him. Try to keep yourself busy... have friends help you while you go through all of this.
"The weakest soul, knowing its own weakness, and believing this truth that strength can only be developed by effort and practice, will, thus believing, at once begin to exert itself, and, adding effort to effort, patience to patience, and strength to strength, will never cease to develop, and will at last grow divinely strong."
- James Allen