When we pray to Jesus, we also pray to God because they are one (John 10:30). While they have different roles, praying to Jesus is an act of communicating with God.