Cannot cast from int primitive to Double type. Just cast to Integer type since port is primitive int.