Added conversion methods to Utils.java